summaryrefslogtreecommitdiff
path: root/cffi/backend_ctypes.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-04-15 19:13:23 +0200
committerArmin Rigo <arigo@tunes.org>2013-04-15 19:13:23 +0200
commitbc8cfed850c5d80aa839165de68b7afdca728dad (patch)
tree45a6fb784a1ae2af4d1e9c6b20619e03dcf53695 /cffi/backend_ctypes.py
parentb4b8d41a54ac514dcf5c67ec296c9c790b675b95 (diff)
downloadcffi-bc8cfed850c5d80aa839165de68b7afdca728dad.tar.gz
Fix for issue 77: give cdatas __module__, __name__ and __doc__ attributes,
for convenience with functools.wraps().
Diffstat (limited to 'cffi/backend_ctypes.py')
-rw-r--r--cffi/backend_ctypes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py
index 6975d9e..f9b3632 100644
--- a/cffi/backend_ctypes.py
+++ b/cffi/backend_ctypes.py
@@ -16,6 +16,7 @@ class CTypesType(type):
class CTypesData(object):
__metaclass__ = CTypesType
__slots__ = ['__weakref__']
+ __name__ = '<cdata>'
def __init__(self, *args):
raise TypeError("cannot instantiate %r" % (self.__class__,))