[issue32940] IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict
Cheryl Sabella
report at bugs.python.org
Sat Feb 24 15:07:12 EST 2018
Cheryl Sabella <chekat2 at gmail.com> added the comment:
Tal had written this on the original issue21765:
----
Finally, since the defaultdict is kept around as long as IDLE is running, I decided to avoid having it grow continually and consume memory unnecessarily. So I wrote a simple Mapping class, which wraps a normal dict and uses a custom default value instead of None, ord('x') in this case. Works like a charm :)
-----
So maybe I misunderstood and this shouldn't be a defaultdict?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32940>
_______________________________________
More information about the Python-bugs-list
mailing list