On Jul 14, 6:21 pm, Inside <fancheyuj...@gmail.com> wrote: > As telling in the subject,because "list" and "tuple" aren't functions,they > are types.Is that right?
list() and tuple() are in the right place in the documentation because they would be harder to find if listed elsewhere. Tools like str(), int(), list(), tuple() etc tend to be used like functions, so the current location in the docs is where they have been for years. A simple fact of documentation that is that tools don't always fall cleanly into distinct categories. Accordingly, the Library Reference includes str,int,list,tuple, etc in both Section 2 for builtin functions and Section 5 for builtin types. 'nuff said, Raymond -- http://mail.python.org/mailman/listinfo/python-list