homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Taldor, benjamin.peterson, ggenellina, ncoghlan
Date 2009年01月24日.15:34:19
SpamBayes Score 1.9403205e-05
Marked as misclassified No
Message-id <1232811261.76.0.984356089848.issue5037@psf.upfronthosting.co.za>
In-reply-to
Content
weakref.proxy needs to be fixed to delegate the unicode slot correctly.
>>> from weakref import proxy
>>> "__unicode__" in dir(type(proxy(Exception)))
False
That predicate must return true in order for the delegation to do the
right thing (this is actually the case for all of the slots and
pseudo-slots that can bypass __getattribute__ on the instance object -
it's just that most of them are already handled correctly).
This need to explicitly delegate all supported slots is the reason why
weakref proxy instances add so many magic method stubs when compared to
the actual interface of the underlying class:
>>> len(set(dir(type(proxy(Exception)))) - set(dir(Exception)))
53
History
Date User Action Args
2009年01月24日 15:34:22ncoghlansetrecipients: + ncoghlan, ggenellina, benjamin.peterson, Taldor
2009年01月24日 15:34:21ncoghlansetmessageid: <1232811261.76.0.984356089848.issue5037@psf.upfronthosting.co.za>
2009年01月24日 15:34:20ncoghlanlinkissue5037 messages
2009年01月24日 15:34:19ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /