[pypy-svn] r36680 - pypy/dist/pypy/annotation
fijal at codespeak.net
fijal at codespeak.net
Sat Jan 13 18:00:41 CET 2007
Author: fijal
Date: Sat Jan 13 18:00:35 2007
New Revision: 36680
Modified:
pypy/dist/pypy/annotation/signature.py
Log:
Add a None dispatching
Modified: pypy/dist/pypy/annotation/signature.py
==============================================================================
--- pypy/dist/pypy/annotation/signature.py (original)
+++ pypy/dist/pypy/annotation/signature.py Sat Jan 13 18:00:35 2007
@@ -37,6 +37,8 @@
assert len(t) == 1, "We do not support type joining in dict"
return SomeDict(DictDef(None, annotation(t.keys()[0]),
annotation(t.values()[0])))
+ elif type(t) is types.NoneType:
+ return s_None
assert isinstance(t, (type, types.ClassType))
if t is bool:
return SomeBool()
More information about the Pypy-commit
mailing list