[pypy-svn] r5612 - pypy/trunk/src/pypy/objspace/std
mwh at codespeak.net
mwh at codespeak.net
Thu Jul 22 17:44:42 CEST 2004
Author: mwh
Date: Thu Jul 22 17:44:42 2004
New Revision: 5612
Modified:
pypy/trunk/src/pypy/objspace/std/longobject.py
Log:
add an assert.
yes, it is possible to trip this assert: 10**-10 will do it.
current workaround: don't do that :-)
Modified: pypy/trunk/src/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/longobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/longobject.py Thu Jul 22 17:44:42 2004
@@ -14,6 +14,7 @@
def __init__(w_self, space, longval=0L):
W_Object.__init__(w_self, space)
+ assert isinstance(longval, long)
w_self.longval = longval
More information about the Pypy-commit
mailing list