[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

Serhiy Storchaka report at bugs.python.org
Fri Nov 18 04:07:54 EST 2016


Serhiy Storchaka added the comment:

There is a problem with locale-depending flags. The same pattern may be compiled with the LOCALE flag to different pattern objects in different locales. Perhaps we should compare the compiled code instead of pattern strings. Or both.

----------

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


More information about the Python-bugs-list mailing list