Confusion: assignments create object references.
Havens, Peter
Peter.Havens at Level3.com
Fri Apr 11 13:21:42 EDT 2003
// -----Original Message-----
// From: Mike C. Fletcher [mailto:mcfletch at rogers.com]
//
// Because Python isn't C ;) . Seriously, what you want to
// think about is namespaces and names. A name is a simple
// mapping from a string to a (smart (i.e. reference-counted))
// PyObject * (under the covers). That is, a name holds a
// reference (pointer) to an object. That's all it ever
// holds a reference to. It never holds a reference to another name
// "slot"(though it can hold the same string value as a name,
// but that's still just a string object).
Eureka! This makes perfect sense to me now!! Thank you kindly for your help. Genius makes the incredible seem obvious. You're a genius :>
Pete
More information about the Python-list
mailing list