[Python-porting] Pickling unbound methods on Python 3

cool-RR cool-rr at cool-rr.com
Mon May 31 12:08:56 CEST 2010


On Mon, May 31, 2010 at 9:31 AM, M.-A. Lemburg <mal at egenix.com> wrote:
>
> I suppose the easiest way to add the information about the defining
> class is to have the class constructor add a function attribute
> to the (unbound) method functions. This should be the name of
> the defining class to avoid circular references.
>
> --
> Marc-Andre Lemburg
>

As a workaround that'll work, yeah. But we were discussing whether we can
make a real solution. (Unless you were proposing that Python itself will do
this and not just my program; In that case I'm totally with you, but it
seems that the Python community isn't.)

Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20100531/3d962915/attachment.html>


More information about the Python-porting mailing list