On Apr 14, 12:57 pm, "7stud" <[EMAIL PROTECTED]> wrote:
> On Apr 14, 4:42 am, [EMAIL PROTECTED] wrote:
>
> > This also is
> > similar to the C++ "using" keyword which exposes the members of a
> > namespace to access without specifying the namespace scope for each
> > reference. For example after giving "using namespace std;" I can
> > change all references to "std::cout" to "cout", which is similar to
> > what I am proposing for Python now.
>
> ...which is a bad practice in C++.  When you expose the members of a
> namespace, you create the potential for name clashes with the names in
> your program.  Why would you want to infect Python with that problem?

Oh.  James Stroud's recommendation would fix that:

> I would favor a convention with leading dots
> to disambiguate from other variables.

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

Reply via email to