Python handles globals badly.

Random832 random832 at fastmail.com
Sat Sep 12 02:25:01 EDT 2015


Chris Angelico <rosuav at gmail.com> writes:
> Here. Ned Batchelder explains it better than I can.

See, those diagrams are perfect (well, almost, I think the names should
have square boxes too). They're arrows. They *point* at
things. *Pointers*.

The boxes are variables. The circles represent special boxes
(implemented in C or Java or whatever) that hold things other than
pointers and therefore can't be used as Python variables.




More information about the Python-list mailing list