[Python-ideas] Keyword/Symbol literals

Serhiy Storchaka storchaka at gmail.com
Thu Jan 22 07:47:15 CET 2015


On 21.01.15 21:18, Alexander Belopolsky wrote:
> Why can't we make interned
> strings a subclass of strings like bool is a subclass of int?

Some code (e.g. pickle, copy, lry_cache, re, pprint) relies on exact 
type and wouldn't work with str subtypes as good as with str.



More information about the Python-ideas mailing list