[pypy-svn] r11955 - pypy/dist/pypy/annotation
arigo at codespeak.net
arigo at codespeak.net
Thu May 5 02:39:46 CEST 2005
Author: arigo
Date: Thu May 5 02:39:46 2005
New Revision: 11955
Modified:
pypy/dist/pypy/annotation/bookkeeper.py
Log:
provide SomeBool's possible_values.
Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py (original)
+++ pypy/dist/pypy/annotation/bookkeeper.py Thu May 5 02:39:46 2005
@@ -467,6 +467,8 @@
assert value is True, ("concrete call with a method bound "
"on a non-constant instance")
possible_values = s.prebuiltinstances.keys()
+ elif isinstance(s, SomeBool):
+ possible_values = [False, True]
else:
raise AssertionError, "concrete call with a non-constant arg %r" % (s,)
for tuple_tail in possible_arguments(args[1:]):
More information about the Pypy-commit
mailing list