[Pythonmac-SIG] Categories for class methods

Dethe Elza delza at livingcode.org
Thu Jan 27 15:45:02 CET 2005


You totally rock, heading to svn now.

Thanks!

--Dethe
On 27-Jan-05, at 3:32 AM, Ronald Oussoren wrote:

>
> On 27-jan-05, at 12:06, Ronald Oussoren wrote:
>
>>
>> On 27-jan-05, at 6:34, Dethe Elza wrote:
>>
>>>
>>> On 26-Jan-05, at 8:58 PM, Dethe Elza wrote:
>>>> class NSImage(Category(NSImage)):
>>>>
>>>>     def read_(cls, filepath):
>>>>         return NSImage.alloc().initWithhContentsOfFile_(filepath)
>>>>     read_ = classmethod(read_)
>>>
>>> er, that should be initWithContentsOfFile_, but still gets the same 
>>> error even without the typo.
>>
>> It's a bug in PyObjC.
>
> Which is fixed in SVN (as of 5 minutes ago, revision 1413).
>
> Ronald
>
>

A good engineer is a person who makes a design that works with as few 
original ideas as possible. --Freeman Dyson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2488 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050127/380b3109/smime-0001.bin


More information about the Pythonmac-SIG mailing list