[Python-Dev] Decimal(unicode)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 27 00:22:08 CET 2008

Nick Coghlan wrote:

> Yeah, this thread has convinced me that it would be better to start 
> rejecting bytes in int() and float() as well rather than implicitly 
> assuming an ASCII encoding.

I had another thought -- would it be feasible to have
some kind of wrapper object that would make a byte
array containing ascii chars look like a string?
Then cases like this could be handled without having
to copy the data.


More information about the Python-Dev mailing list