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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28293>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to