[Python-Dev] [Python-checkins] r64424 - in python/trunk: Include/object.h Lib/test/test_sys.py Misc/NEWS Objects/intobject.c Objects/longobject.c Objects/typeobject.c Python/bltinmodule.c (original) (raw)

Leif Walsh leif.walsh at gmail.com
Tue Jun 24 17:59:43 CEST 2008


On Tue, 24 Jun 2008, Nick Coghlan wrote:

I'd prefer to see a proper PEP for this proposing a new slot that lets any class return an (integerpart, fractionpart) tuple of integers, and have PyNumberToBase take care of the actual string formatting.

I take issue only with your notion of returning a 'fraction_part integer'. How do you propose we do this? I suggest we add a third value, exponent, to the suggested return value.

-- Cheers, Leif



More information about the Python-Dev mailing list