[pypy-svn] r16575 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Fri Aug 26 11:37:20 CEST 2005
Author: tismer
Date: Fri Aug 26 11:37:19 2005
New Revision: 16575
Modified:
pypy/dist/pypy/objspace/std/longobject.py
Log:
small relaxation on len(digit array).
todo: make this more strict and don't uselen() at all.
Modified: pypy/dist/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/longobject.py (original)
+++ pypy/dist/pypy/objspace/std/longobject.py Fri Aug 26 11:37:19 2005
@@ -93,7 +93,6 @@
w_self.digits = DigitArray(digits)
w_self.sign = sign
w_self.space = space
- assert len(w_self.digits)
def fromint(space, intval):
if intval < 0:
@@ -138,7 +137,7 @@
def _normalize(self):
if len(self.digits) == 0:
self.sign = 0
- self.digits = [0]
+ self.digits = []
return
i = len(self.digits) - 1
while i != 0 and self.digits[i] == 0:
More information about the Pypy-commit
mailing list