A completely silly question

Fredrik Lundh fredrik at pythonware.com
Sat Dec 18 02:22:58 EST 2004


>> Well, but that's true as well for getchar() (at least in many cases of
>> interactive input and line buffering), so in that respect I do think
>> it's a fairly direct replacement, depending on how the OP was going to
>> use getchar() in the application.
>
> The OP said "wait for a single character input". sys.stdin.read(1)
> waits for a newline.

in the same same sentence, the OP also said that he wanted something like
C's getchar().  if you guys are going to read only parts of the original post,
you could at least try to read an entire sentence, before you start arguing...

</F> 






More information about the Python-list mailing list