[Python-ideas] Keyword/Symbol literals

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jan 21 23:18:31 CET 2015

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

Because a string can change from being non-interned to
being interned at some point in its life. I suppose
its tp_class could be changed at that point, but that
would be surprising for an otherwise immutable type.


More information about the Python-ideas mailing list