How do I display unicode value stored in a string variable using ord()

Paul Rubin no.email at nospam.invalid
Sun Aug 19 15:23:32 EDT 2012


Ian Kelly <ian.g.kelly at gmail.com> writes:
>>>> print (type(bytes(range(256)).decode('latin1')))
> <class 'str'>

Thanks.



More information about the Python-list mailing list