[Python-porting] Pickling unbound methods on Python 3
cool-RR
cool-rr at cool-rr.com
Sun May 30 23:43:03 CEST 2010
On Sun, May 30, 2010 at 11:34 PM, "Martin v. Löwis" <martin at v.loewis.de>wrote:
> Am 30.05.2010 12:00, schrieb cool-RR:
>
>> On Sun, May 30, 2010 at 9:19 AM, "Martin v. Löwis" <martin at v.loewis.de
>> <mailto:martin at v.loewis.de>> wrote:
>>
>> I can think of a few solutions:
>>
>> 1. Make `save_global` look in the classes inside the module as
>> well.
>>
>>
>> How exactly would you do this? I don't think this is implementable,
>> in a reasonable way.
>>
>>
>> I don't understand what the problem is with just looking in the classes
>> defined in the module:
>>
>
> I wouldn't call this a reasonable implementation. It is fairly expensive.
>
> Regards,
> Martin
>
What if we'll try the expensive stuff after the old way (shallow module
search) fails and is about to raise an exception?
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20100530/364df462/attachment.html>
More information about the Python-porting
mailing list