Author: Armin Rigo <[email protected]>
Branch:
Changeset: r91944:c40c4fbf020e
Date: 2017-07-20 16:47 +0200
http://bitbucket.org/pypy/pypy/changeset/c40c4fbf020e/
Log: Mention that you can't compile new regexps in an RPython program,
you can only use precompiled ones
diff --git a/rpython/rlib/rsre/rpy/_sre.py b/rpython/rlib/rsre/rpy/_sre.py
--- a/rpython/rlib/rsre/rpy/_sre.py
+++ b/rpython/rlib/rsre/rpy/_sre.py
@@ -16,6 +16,8 @@
def get_code(regexp, flags=0, allargs=False):
+ """NOT_RPYTHON: you can't compile new regexps in an RPython program,
+ you can only use precompiled ones"""
from . import sre_compile
try:
sre_compile.compile(regexp, flags)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit