Where's the documentation to support the following behavior...

Aahz aahz at pythoncraft.com
Wed Mar 18 01:35:29 CET 2009


In article <163b0c86-adf7-434c-9270-c819c5a072c4 at k29g2000prf.googlegroups.com>,
grocery_stocker  <cdalten at gmail.com> wrote:
>
>[cdalten at localhost ~]$ python
>Python 2.4.3 (#1, Oct  1 2006, 18:00:19)
>[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>>>> list = [7,8,9]

Don't use a variable named "list" -- you're hiding the list() type.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Programming language design is not a rational science. Most reasoning
about it is at best rationalization of gut feelings, and at worst plain
wrong."  --GvR, python-ideas, 2009-3-1



More information about the Python-list mailing list