[Python-Dev] Unifying Long Integers and Integers: baseint

"Martin v. Löwis" martin at v.loewis.de
Thu Aug 12 08:29:00 CEST 2004


Greg Ewing wrote:
> Perhaps the constructor for a byte array could accept a string
> argument as long as it contained only ascii characters?
> 
>    h.putrequest(bytes('GET'), selector)

That is probably most reasonable. It would be harmless to extend it
to Latin-1, which would allow to represent all byte values in a
string literal - even using the appropriate \x escapes.

Regards,
Martin


More information about the Python-Dev mailing list