In article <gun8m0$qt...@panix3.panix.com>, a...@pythoncraft.com (Aahz) 
wrote:
> In article <mailman.247.1242441988.8015.python-l...@python.org>,
> Ned Deily  <n...@acm.org> wrote:
> >The second example is a call to the built-in function "list",  [...]
> Actually, list() is not a function: 
> >>> list
> <type 'list'>
> Rather, ``list`` is an object (specifically a ``type`` object) with a
> __call__() method.

Yes.  However, it is also true that "list" is listed under the Built-in 
Functions section of the Python Standard Library documentation and, wrt 
to explaining the OP's issue, quacks like a function here.

-- 
 Ned Deily,
 n...@acm.org

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

Reply via email to