On Monday, February 10, 2014 4:07:14 PM UTC+2, wxjm...@gmail.com wrote: Interesting
> >>> sys.getsizeof('a' * 1000000) here you get string type > >>> sys.getsizeof(('a' * 1000000 + 'oe' + '\U00010000').encode('utf-8')) and here bytes >>> type ('a' * 10000) <class 'str'> >>> type(('a' * 1000000 + 'oe' + '\U00010000').encode('utf-8')) <class 'bytes'> >>> Why? -- https://mail.python.org/mailman/listinfo/python-list