[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 09 Oct 2002 12:36:23 +1300 (NZDT)


Oren Tirosh <oren-py-d@hishome.net>:

What would your like to see as the repr() of a rational number? The answer to this will also determine what you type in your source.

I think it's the other way around -- what you type in the source determines what repr() should return.

If a constructor, e.g. rat(2,3) is used, then the repr() should be likewise.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+