Message170999
I have finished a solution working for me. It bypasses standard Python interactive interpreter and uses its own repl based on code.interact(). This repl is activated by an ugly hack since PYTHONSTARTUP doesn't apply when some file is run (python -i somefile.py). Why it works like that? Startup script could find out if a file is run or not. If anybody knows how to get rid of time.sleep() used for wait for KeyboardInterrupt or how to get rid of PromptHack, please let me know. The "patch" can be activated by win_unicode_console_2.enable(change_console=True, use_hack=True) in site or sitecustomize or usercustomize. |
|
Date |
User |
Action |
Args |
2012-09-22 14:27:25 | Drekin | set | recipients:
+ Drekin, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, pitrou, vstinner, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, davidsarah, santoso.wijaya, akira, David.Sankel, smerlin |
2012-09-22 14:27:21 | Drekin | set | messageid: <1348324042.0.0.228490922136.issue1602@psf.upfronthosting.co.za> |
2012-09-22 14:27:21 | Drekin | link | issue1602 messages |
2012-09-22 14:27:20 | Drekin | create | |
|