[Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 26 03:14:55 CEST 2007


Jeffrey Yasskin wrote:
> If you write a function that can take
> an arbitrary ring, it should Just Work on a python int, or any other
> Complex subclass,

There's no reason it shouldn't "just work", unless
it's being anal and trying to make sure it's been
given things of what it considers to be the proper
type.

--
Greg


More information about the Python-3000 mailing list