raw_input(), STRANGE behaviour
Dox33
Rens.Duijsens at gmail.com
Mon Jan 28 04:12:12 EST 2008
YES!
This is what I was looking for.
Great! All works fine now.
Thank you very much Gabriel.
Gabriel Genellina schreef:
> Add this on your sitecustomize.py module (or create one)
>
> import sys
> def raw_input(prompt=None):
> if prompt: sys.stdout.write(prompt)
> return original_raw_input()
>
> import __builtin__
> original_raw_input = __builtin__.raw_input
> __builtin__.raw_input = raw_input
>
> It just replaces the builtin raw_input with a custom function.
More information about the Python-list
mailing list