character Satisfied Interfaces: Comparable<Character>, Enumerable<Character>, Ordinal<Other> A 32-bit Unicode character. Satisfied Interfaces: Category, Cloneable<List<Element>>, Collection<Element>, Comparable<String>, Correspondence<Integer,Element>, Iterable<Element,Null>, List<Character>, Ranged<Integer,String>, Summable<String>
string Satisfied Interfaces: Category, Cloneable<List<Element>>, Collection<Element>, Comparable<String>, Correspondence<Integer,Element>, Iterable<Element,Null>, List<Character>, Ranged<Integer,String>, Summable<String> A string of characters. Each character in the string is a 32-bit Unicode character. The internal UTF-16 encoding is hidden from clients. A string is a Category of its Characters, and of its substrings: Clean. Far, far away from a unicode handling which may require 18 bytes (!) more to encode a non ascii n-chars string than a ascii n-chars string. (With performances following expectedly "globally" the same logic) >>> sys.getsizeof('a') 26 >>> sys.getsizeof('\U0001d11e') 44 jmf -- https://mail.python.org/mailman/listinfo/python-list