[pypy-svn] r8781 - pypy/dist/pypy/lib

sanxiyn at codespeak.net sanxiyn at codespeak.net
Tue Feb 1 02:50:30 CET 2005


Author: sanxiyn
Date: Tue Feb  1 02:50:30 2005
New Revision: 8781

Added:
   pypy/dist/pypy/lib/README.regex
   pypy/dist/pypy/lib/re.py
      - copied unchanged from r8718, pypy/dist/pypy/lib/re.py
   pypy/dist/pypy/lib/sre_adapt.py
      - copied unchanged from r8718, pypy/dist/pypy/lib/sre_adapt.py
   pypy/dist/pypy/lib/sre_parse.py
      - copied unchanged from r8718, pypy/dist/pypy/lib/sre_parse.py
Log:
Undelete files, with explanation.


Added: pypy/dist/pypy/lib/README.regex
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/lib/README.regex	Tue Feb  1 02:50:30 2005
@@ -0,0 +1,28 @@
+Regular Expression related modules in PyPy
+
+History
+  Seo Sanghyeon, 2004-02-01
+
+See also
+  http://codespeak.net/pipermail/pypy-dev/2005q1/001794.html
+
+Following files in this directory are related to regular expression
+in PyPy: re.py, dumbre.py, plexre.py, sre_adapt.py, sre_parse.py.
+
+re.py contains backend-neutral interfaces and utilities.
+
+re.py imports Pattern class, with signature __init__(self, pattern, flags),
+from backends. Pattern class implements methods of _sre.SRE_Pattern,
+like match and search.
+
+dumbre.py is a backend that exits as soon as regular expression is met.
+plexre.py uses Plex module to implement regular expression. sre_adapt.py
+cheats and imports CPython _sre.
+
+Importing CPython _sre doesn't work currently, because C types are not
+succesfully faked. The reason seems to be the lack of __dict__. This is
+also why we have pure Python random.py from 2.2 in this directory.
+
+sre_parse.py is patched because it uses deprecated __getslice__ in
+a special way, and PyPy fails to interpret it correctly. Delete this
+file when this is fixed.



More information about the Pypy-commit mailing list