Drekin added the comment:

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.

----------
Added file: http://bugs.python.org/file27261/win_unicode_console_2.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to