[Python-Dev] Decimal(unicode)
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Mar 26 01:37:31 CET 2008
Terry Reedy wrote:
> The purpose of type constructors is to construct instances from reasonable
> inputs. I think all number constructors should accept bytes
What should bytes as input to a number constructor
mean, though?
People seem to be assuming it should be interpreted
as ASCII-encoded characters.
But an equally plausible interpretation might be
that it's some binary representation of a number.
--
Greg
More information about the Python-Dev
mailing list