Message109023
I'm using Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32. Running the following code:
import profile
import math
import decimal
def show_bug():
x = decimal.Decimal.from_float(math.e)**(-2**31)
profile.run('show_bug()')
And I get this stack trace:
Traceback (most recent call last):
File "C:/Users/Me/Documents/python/temptest", line 15, in <module>
profile.run('show_bug()')
File "C:\Python31\lib\profile.py", line 70, in run
prof = prof.run(statement)
File "C:\Python31\lib\profile.py", line 456, in run
return self.runctx(cmd, dict, dict)
File "C:\Python31\lib\profile.py", line 462, in runctx
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "C:/Users/Me/Documents/python/temptest", line 8, in show_bug
x = Decimal.from_float(math.e)**(-2**31)
File "C:\Python31\lib\decimal.py", line 2212, in __pow__
context = getcontext()
File "C:\Python31\lib\decimal.py", line 447, in getcontext
context = Context()
File "C:\Python31\lib\decimal.py", line 3777, in __init__
for name, val in locals().items():
RuntimeError: dictionary changed size during iteration |
|
Date |
User |
Action |
Args |
2010-06-30 22:18:23 | ubershmekel | set | recipients:
+ ubershmekel |
2010-06-30 22:18:23 | ubershmekel | set | messageid: <1277936303.13.0.879921120175.issue9136@psf.upfronthosting.co.za> |
2010-06-30 22:18:21 | ubershmekel | link | issue9136 messages |
2010-06-30 22:18:21 | ubershmekel | create | |
|