[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r84256. Don't think this needs to be backported. -- resolution: -> fixed status: open -> closed versions: +Python 3.2 -Python 2.6, Python 2.7 ___ Python tracker __

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/4/14 Raymond Hettinger : > > Raymond Hettinger added the comment: > >> Probably due to the fact that the peepholer >> avoids constant folding when any exception happens. > > Yes.  And that is a feature, not a bug. > > It would better though if the keybo

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Probably due to the fact that the peepholer > avoids constant folding when any exception happens. Yes. And that is a feature, not a bug. It would better though if the keyboard interrupt was not swallowed. -- assignee: -> rhettinger nosy: +rhet

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Probably due to the fact that the peepholer avoids constant folding when any exception happens. -- nosy: +benjamin.peterson priority: -> low ___ Python tracker ___

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread ivank
New submission from ivank : If you run >>> dis.dis(lambda: 99**103) and press Ctrl-C immediately, you'll see the numbers without constant folding: 1 0 LOAD_CONST 1 (99) 3 LOAD_CONST 2 (103) 6 BINARY_POWER