diff options
author | Armin Rigo <arigo@tunes.org> | 2013-04-15 19:13:23 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-04-15 19:13:23 +0200 |
commit | bc8cfed850c5d80aa839165de68b7afdca728dad (patch) | |
tree | 45a6fb784a1ae2af4d1e9c6b20619e03dcf53695 /cffi/backend_ctypes.py | |
parent | b4b8d41a54ac514dcf5c67ec296c9c790b675b95 (diff) | |
download | cffi-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.py | 1 |
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__,)) |