[Pyobjc-dev] Categories complain about docstrings
Brought to you by:
ronaldoussoren
|
From: Orestis M. <or...@or...> - 2009-04-05 21:08:20
|
>>> import objc
>>> from Foundation import *
>>> class NSObject(objc.Category(NSObject)):
... "docstring"
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/PyObjC/objc/_category.py", line 44, in __new__
classAddMethods(c, m)
TypeError: Error when calling the metaclass bases
All objects in methodArray must be of type <objc.selector>,
<function>, <method> or <classmethod>
Tripped me up by the misleading error message :)
Orestis
--
or...@or...
http://orestis.gr/
|