raw_input(), STRANGE behaviour

Hrvoje Niksic hniksic at xemacs.org
Sun Jan 27 04:20:49 CET 2008


Dox33 <Rens.Duijsens at gmail.com> writes:

> Thanks for your reply.  Since I momentarily do not have the ability
> to build a new python executable, I would like to ask for your help
> in this case.  Are you able to supply me with a corrected version?

You can simply choose not to use raw_input, and use sys.stdin.readline
instead.  Or define your own corrected raw_input:

def my_raw_input(msg):
    print msg,
    return raw_input()



More information about the Python-list mailing list