Arithmetic sequences in Python

Alex Martelli aleax at mail.comcast.net
Sun Jan 22 20:05:14 EST 2006


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:

> Steve Holden <steve at holdenweb.com> writes:
> > > The current list function is supposed to be something like a
> > > typecast:
> > >
> > list() isn't a function, it's a type.
> 
> I'm not sure what the distinction is supposed to be.  "list" is anyway

You can subclass a type, you can check for it with isinstance, etc, all
things you couldn't do if list was still a factory function as in 2.1
and back.


Alex



More information about the Python-list mailing list