Steven D'Aprano wrote:
On Mon, 12 Dec 2011 12:13:33 +0100, Jean-Michel Pichavant wrote:

Using the same name for 2 different objects is a bad idea in general.

We have namespaces precisely so you don't need to care about making names globally unique.


I don't get your point, namespaced names are unique, by definition.

foo.aname <> bar.aname

The OP showed a code where there was a confusion between a global name and a local one. There's no namespace involved. Having a local name identical to a global one is a bad idea, def.

JM
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to