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 PiDelport, Rhamphoryncus, barry, georg.brandl, jcea, jkrukoff, ncoghlan, terry.reedy
Date 2008-06-05.14:16:26
SpamBayes Score 0.027877113
Marked as misclassified No
Message-id <1212675400.18.0.256796596768.issue643841@psf.upfronthosting.co.za>
In-reply-to
Content
I've attached the latest version of the module as an actual patch
against Python SVN.

It differs slightly from the last version uploaded as separate files, in
that in-place operations on a proxied object will no longer strip the
proxy wrapper off the object. Instead, either the same proxy object will
be returned if the target returned itself from the in-place operation
(mutable objects), or a new proxy wrapper around the result of the
target returned a different object (immutable objects).

Example with a mutable target:
>>> from typetools import ProxyMixin as p
>>> x = p([])
>>> last_x = x
>>> x += [1]
>>> x
<ProxyMixin for [1]>
>>> last_x
<ProxyMixin for [1]>

Example with an immutable target:
>>> from typetools import ProxyMixin as p
>>> x = p(1)
>>> last_x = x
>>> x += 1
>>> x
<ProxyMixin for 2>
>>> last_x
<ProxyMixin for 1>
History
Date User Action Args
2008-06-05 14:16:41ncoghlansetspambayes_score: 0.0278771 -> 0.027877113
recipients: + ncoghlan, barry, georg.brandl, terry.reedy, jcea, Rhamphoryncus, jkrukoff, PiDelport
2008-06-05 14:16:40ncoghlansetspambayes_score: 0.0278771 -> 0.0278771
messageid: <1212675400.18.0.256796596768.issue643841@psf.upfronthosting.co.za>
2008-06-05 14:16:38ncoghlanlinkissue643841 messages
2008-06-05 14:16:38ncoghlancreate