This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ubershmekel
Recipients ubershmekel
Date 2010-06-30.22:18:21
SpamBayes Score 3.4023722e-07
Marked as misclassified No
Message-id <1277936303.13.0.879921120175.issue9136@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-06-30 22:18:23ubershmekelsetrecipients: + ubershmekel
2010-06-30 22:18:23ubershmekelsetmessageid: <1277936303.13.0.879921120175.issue9136@psf.upfronthosting.co.za>
2010-06-30 22:18:21ubershmekellinkissue9136 messages
2010-06-30 22:18:21ubershmekelcreate