Message170999
| Author |
Drekin |
| Recipients |
David.Sankel, Drekin, akira, amaury.forgeotdarc, christian.heimes, christoph, davidsarah, ezio.melotti, giampaolo.rodola, hippietrail, lemburg, mark, mhammond, pitrou, santoso.wijaya, smerlin, ssbarnea, terry.reedy, tim.golden, tzot, v+python, vstinner |
| Date |
2012年09月22日.14:27:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348324042.0.0.228490922136.issue1602@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|