[pypy-svn] r38513 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Sun Feb 11 20:09:13 CET 2007
Author: arigo
Date: Sun Feb 11 20:09:12 2007
New Revision: 38513
Modified:
pypy/dist/pypy/objspace/std/unicodeobject.py
Log:
Fix translation: 'unichar < unichar' is not RPython.
Modified: pypy/dist/pypy/objspace/std/unicodeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/unicodeobject.py (original)
+++ pypy/dist/pypy/objspace/std/unicodeobject.py Sun Feb 11 20:09:12 2007
@@ -73,7 +73,8 @@
right = w_right._value
for i in range(min(len(left), len(right))):
if left[i] != right[i]:
- return space.newbool(left[i] < right[i])
+ return space.newbool(ord(left[i]) < ord(right[i]))
+ # NB. 'unichar < unichar' is not RPython at the moment
return space.newbool(len(left) < len(right))
def ord__Unicode(space, w_uni):
More information about the Pypy-commit
mailing list