I am out of trial and error again Lists

Chris Angelico rosuav at gmail.com
Fri Oct 24 19:10:45 CEST 2014


On Sat, Oct 25, 2014 at 4:05 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> The name of the builtin is "list". It's a function* that takes an
> argument and uses it to construct a list, which it returns.
>
> *Actually it's a type object, and calling it causes an instance of the
> type to be constructed, but for all intents and purposes here it works
> exactly like a function.

It's callable, that's all that matters.

callable(object) -> bool
    Return whether the object is callable (i.e., some kind of function).

:)

ChrisA



More information about the Python-list mailing list