Method Underscores?

Ville Vainio ville at spammers.com
Fri Oct 22 12:57:38 CEST 2004


>>>>> "Lonnie" == Lonnie Princehouse <finite.automaton at gmail.com> writes:

    Lonnie> It's extremely common for Python newbies to accidentally
    Lonnie> overwrite the names of important things.  I see stuff like
    Lonnie> this all the time:

    Lonnie> list = [1,2,3]
    Lonnie> str = "Hello world"

This is not really a mistake. If you don't use "list" builtin in the
same function, it's ok to override it. Not so on module level, of
course.

-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list