[pypy-svn] pypy default: (arigo, fijal) Crash instead of warning, this will generate blocked blocks
fijal
commits-noreply at bitbucket.org
Tue Jan 18 15:02:56 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r40859:bdd4c428b285
Date: 2011-01-18 16:02 +0200
http://bitbucket.org/pypy/pypy/changeset/bdd4c428b285/
Log: (arigo, fijal) Crash instead of warning, this will generate blocked
blocks
diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -40,6 +40,9 @@
DEBUG = False # set to False to disable recording of debugging information
TLS = tlsobject()
+class NoPreciseAnnotation(Exception):
+ pass
+
class SomeObject(object):
"""The set of all objects. Each instance stands
for an arbitrary object about which nothing is known."""
@@ -742,9 +745,7 @@
for arg in flattened:
if arg.__class__ is SomeObject and arg.knowntype is not type:
return SomeObject()
- bookkeeper = pypy.annotation.bookkeeper.getbookkeeper()
- bookkeeper.warning("no precise annotation supplied for %s%r" % (name, args))
- return s_ImpossibleValue
+ raise NoPreciseAnnotation()
setattr(cls, name, default_op)
class HarmlesslyBlocked(Exception):
More information about the Pypy-commit
mailing list