[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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant