[issue28293] Don't completely dump the regex cache when full

Serhiy Storchaka report at bugs.python.org
Wed Sep 28 02:14:01 EDT 2016


Serhiy Storchaka added the comment:

> Maybe use OrderedDict? But this adds heavy dependency to the re module.

We can use the same trick as in the enum module. Here is a patch.

----------
Added file: http://bugs.python.org/file44854/re_cache_ordered_dict_del_first.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28293>
_______________________________________


More information about the Python-bugs-list mailing list