[Numpy-svn] r8554 - branches/1.5.x/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Sat Jul 31 01:35:06 EDT 2010
Author: rgommers
Date: 2010-07-31 00:35:06 -0500 (Sat, 31 Jul 2010)
New Revision: 8554
Modified:
branches/1.5.x/numpy/core/numeric.py
Log:
BUG: (backport of r8553) fix base_repr for py3k.
Strings can not be indexed with floats anymore.
Modified: branches/1.5.x/numpy/core/numeric.py
===================================================================
--- branches/1.5.x/numpy/core/numeric.py 2010-07-31 05:32:55 UTC (rev 8553)
+++ branches/1.5.x/numpy/core/numeric.py 2010-07-31 05:35:06 UTC (rev 8554)
@@ -1798,7 +1798,7 @@
res = []
while num:
res.append(digits[num % base])
- num /= base
+ num //= base
if padding:
res.append('0' * padding)
if number < 0:
More information about the Numpy-svn
mailing list