[issue26336] Expose regex bytecode as attribute of compiled pattern object

Jelle Zijlstra report at bugs.python.org
Sun Jun 5 03:35:28 EDT 2016


Jelle Zijlstra added the comment:

Updated patch attached.

I don't feel strongly about whether this should be in Python, but it seems potentially useful at least as a tool to learn more about how re is implemented. If I have time I may write a tool using __pattern_code__ and the sre_constants module to provide a disassembly for regexes.

----------
Added file: http://bugs.python.org/file43232/issue26336-cr2.patch

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


More information about the Python-bugs-list mailing list