PEP 285: Adding a bool type

Paul Rubin phr-n2002a at nightsong.com
Sat Mar 30 07:51:53 EST 2002


"John Roth" <johnroth at ameritech.net> writes:
> > If we get bools can sets be far behind, and what about quaternions and
> > abelian groups?
> 
> I could see sets as part of the core language, if a couple of issues
> with respect to notation could be cleared up. I don't see the other
> two, but then, I don't really think that complex numbers should have
> been part of the core language either.

There's a PEP for sets that looks pretty good to me.  They look
more useful than bools.  They actually make some tasks easier.  
I haven't heard yet how bools make anything easier.

> It depends on what can be used by most applications. Sets and
> enums are generally useful. Complex, quaternians and so forth
> are application specific things.

quaternions can be implemented by a module like cmath, if useful.
Alternatively they can be represented as 3x3 matrices in Numeric.



More information about the Python-list mailing list