[New-bugs-announce] [issue8403] dis.dis gives different results if Ctrl-C is pressed
ivank
report at bugs.python.org
Thu Apr 15 03:00:03 CEST 2010
New submission from ivank <ivan at ludios.org>:
If you run
>>> dis.dis(lambda: 99**1000003)
and press Ctrl-C immediately, you'll see the numbers without constant folding:
1 0 LOAD_CONST 1 (99)
3 LOAD_CONST 2 (1000003)
6 BINARY_POWER
7 RETURN_VALUE
If you wait long enough instead (don't press Ctrl-C), you'll see a very big number.
It seems strange to do two different things. Perhaps the KeyboardInterrupt should be rethrown instead?
----------
components: Library (Lib)
messages: 103161
nosy: ivank
severity: normal
status: open
title: dis.dis gives different results if Ctrl-C is pressed
versions: Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8403>
_______________________________________
More information about the New-bugs-announce
mailing list