Because istr is a str subclass and strings have no instance dictionaries, and especially in the case of this library where instances of istr are used as dictionary keys and many of them are created for large case-insensitive multidicts, it would be beneficial to have a __slots__ = () declaration in the class body of istr. This will save the memory allocated to create a dictionary every time a istr is constructed to be used as a key.
Because
istris astrsubclass and strings have no instance dictionaries, and especially in the case of this library where instances ofistrare used as dictionary keys and many of them are created for large case-insensitive multidicts, it would be beneficial to have a__slots__ = ()declaration in the class body ofistr. This will save the memory allocated to create a dictionary every time aistris constructed to be used as a key.