[Python-Dev] Decimal(unicode)

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 26 00:31:24 CET 2008


Nick Coghlan wrote:
> Since we have some strong use cases at least for the bytes->int case, 
> consistency then suggests that the other numeric types should all accept 
> bytes as well (interpreting them as ASCII encoded strings).

How far should this go? Is conversion to numbers really
so special, or should bytes be acceptable in any context
requiring a string, with an implicit encoding of ascii?

-- 
Greg



More information about the Python-Dev mailing list