Python handles globals badly.

Random832 random832 at fastmail.com
Sat Sep 12 00:34:52 EDT 2015


Mark Lawrence <breamoreboy at yahoo.co.uk> writes:
> I think pointer is even worse because of its connection with C and
> hence cPython.  What is wrong with object if that is the only thing
> Python knows about?

Because the object is the *thing the arrow points at*. You don't have
two objects when store the same object in two variables (names, list
slots, whatever), but you do have two pointers.

And they *are* pointers in cPython - so that "connection" is a feature,
not a bug.




More information about the Python-list mailing list