[pypy-svn] r10719 - pypy/dist/pypy/annotation
pedronis at codespeak.net
pedronis at codespeak.net
Sat Apr 16 00:51:09 CEST 2005
Author: pedronis
Date: Sat Apr 16 00:51:09 2005
New Revision: 10719
Modified:
pypy/dist/pypy/annotation/unaryop.py
Log:
annotation for id (int for now)
Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py (original)
+++ pypy/dist/pypy/annotation/unaryop.py Sat Apr 16 00:51:09 2005
@@ -23,7 +23,7 @@
'simple_call', 'call_args', 'str', 'repr',
'iter', 'next', 'invert', 'type', 'issubtype',
'pos', 'neg', 'nonzero', 'abs', 'hex', 'oct',
- 'ord', 'int', 'float', 'long'])
+ 'ord', 'int', 'float', 'long', 'id'])
for opname in UNARY_OPERATIONS:
missing_operation(SomeObject, opname)
@@ -82,6 +82,9 @@
repr = hex = oct = str
+ def id(obj): # xxx
+ return SomeInteger()
+
def int(obj):
return SomeInteger()
More information about the Pypy-commit
mailing list