str() should convert ANY object to a string without EXCEPTIONS !
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Sun Sep 28 02:03:42 EDT 2008
In message
<9890864a-09f9-40d6-b2cc-5028e7a0c8c3 at q26g2000prq.googlegroups.com>, est
wrote:
> The problem is, why the f**k set ASCII encoding to range(128) ????????
Because that's how ASCII is defined.
> while str() is internally byte array it should be handled in
> range(256) !!!!!!!!!!
But that's for random bytes. How would you convert an arbitrary object to
random bytes?
More information about the Python-list
mailing list