[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2018-07-11 Thread STINNER Victor
STINNER Victor added the comment: Yeah, let's close this issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2018-07-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2018-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can reproduce a crash in 3.5, but not in 3.6. Seems it was fixed in issue30416. -- ___ Python tracker

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2017-04-11 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1221 ___ Python tracker ___ ___ Python-bugs-list

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2017-04-11 Thread Louie Lu
Changes by Louie Lu : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2015-12-09 Thread STINNER Victor
New submission from STINNER Victor: The peephole optimizer computes 2**(2**100), but if I press CTRL+c (the result will probably kills my memory anyway), I get an assertion error (with a Python compiled in debug mode). $ ./python >>> 2**(2**100) ^C python: Python/ceval.c:1218:

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2015-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker ___

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2015-12-09 Thread STINNER Victor
STINNER Victor added the comment: FYI. > Peephole optimizer of Python 2.7 (...) only optimizes 2**100, but not > 2**(2**100). This optimizer is dummy, it's only able to replace "LOAD_CONST x; LOAD_CONST y; OPERATION" with the result, whereas the optimizer replaces the bytecode with "NOP;

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2015-12-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +pitrou ___ Python tracker ___ ___