Arithmetic sequences in Python
Paul Rubin
http
Sun Jan 22 19:40:48 EST 2006
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
callable, and lambda a:list(a) is certainly a function.
> > xlist((1,2)) = [(1,2)]
> > etc.
>
> I presume that here "=" means "evaluates to"?
Yeah, although I meant something more informal, like mathematical
equivalence.
Maybe the preferred spellings for the constructors would use capital
letters: List, Dict, Set, instead of listx or xlist or whatever. That
would break the current meaning of Set but I hope not much depends on
that yet.
More information about the Python-list
mailing list