[Python-Dev] replacing 'global'
Jeremy Hylton
jeremy at zope.com
Tue Oct 21 23:08:10 EDT 2003
On Tue, 2003-10-21 at 20:42, Guido van Rossum wrote:
> (If it wasn't clear, I'm struggling with this subject -- I think there
> are good reasons for why I'm resisting your proposal, but I haven't
> found them yet. The more I think about it, the less I like
> 'globals.x = 42' .
I think it's good that attribute assignment and variable assignment look
different. An object's attributes are more dynamic that the variables
in a module. I don't see much benefit to conflating two distinct
concepts.
Jeremy
More information about the Python-Dev
mailing list