[Python-Dev] Metaclass problem in the "with" statement semantics in PEP 343
Nick Coghlan
ncoghlan at gmail.com
Wed Nov 30 10:51:26 CET 2005
Edward Loper wrote:
> Otherwise, it seems like people might write code that relies on the
> current behavior, which will then break if we eg turn __context__ into
> a slot. (It sounds like you want to reserve the right to change this.)
> Well, of course, people may rely on the current behavior anyway, but
> at least they'll have been warned. :)
Yep - I thought "the instance dictionary has no effect" was an actual rule,
but it turns out the rules are slightly looser than that (specifically, that
fact that the effect of having a slot name in the instance dictionary is
undefined).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list