Michael.Lausch a écrit :
(snip)

Now I'm trying to understand why this is the case.
How is Foo.__dict__['_ref']  different from Foo._ref?
Shouldn't it return the same attribute?


It's an application of the descriptor protocol:

http://wiki.python.org/moin/FromFunctionToMethod
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to