On Sun, Aug 19, 2012 at 12:20 PM, Paul Rubin <no.email@nospam.invalid> wrote:
> Ian Kelly <ian.g.ke...@gmail.com> writes:
>>>>> sys.getsizeof(bytes(range(256)).decode('latin1'))
>> 329
>
> Please try:
>
>    print (type(bytes(range(256)).decode('latin1')))
>
> to make sure that what comes back is actually a unicode string rather
> than a byte string.

As I understand it, the decode method never returns a byte string in
Python 3, but if you insist:

>>> print (type(bytes(range(256)).decode('latin1')))
<class 'str'>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to