[pypy-svn] r15752 - in pypy/dist/pypy/module: _sre array

arigo at codespeak.net arigo at codespeak.net
Sun Aug 7 23:07:52 CEST 2005


Author: arigo
Date: Sun Aug  7 23:07:49 2005
New Revision: 15752

Modified:
   pypy/dist/pypy/module/_sre/app_sre.py
   pypy/dist/pypy/module/array/app_array.py
Log:
* minor: give _sre.MAGIC the value of Python 2.4 on future versions (> 2.4) as
         well
* XXX missing slice deletion in class 'array'.


Modified: pypy/dist/pypy/module/_sre/app_sre.py
==============================================================================
--- pypy/dist/pypy/module/_sre/app_sre.py	(original)
+++ pypy/dist/pypy/module/_sre/app_sre.py	Sun Aug  7 23:07:49 2005
@@ -15,7 +15,7 @@
 #from sre_constants import ATCODES, OPCODES, CHCODES, MAXREPEAT
 
 # Identifying as _sre from Python 2.3 or 2.4
-if sys.version_info[:2] == (2, 4):
+if sys.version_info[:2] >= (2, 4):
     MAGIC = 20031017
 else:
     MAGIC = 20030419

Modified: pypy/dist/pypy/module/array/app_array.py
==============================================================================
--- pypy/dist/pypy/module/array/app_array.py	(original)
+++ pypy/dist/pypy/module/array/app_array.py	Sun Aug  7 23:07:49 2005
@@ -444,6 +444,7 @@
         self.__setitem__(slice(i, j), x)
 
     def __delitem__(self, i):
+        # XXX missing: deleting a slice
         del self._data[i]
 
     def __delslice__(self, i, j):



More information about the Pypy-commit mailing list