input

Gerhard Häring gh_pythonlist at gmx.de
Tue Dec 11 16:21:30 EST 2001


Le 11/12/01 à 14:13, Bjorn Pettersen écrivit:
> > From: Preben [mailto:preben_er_t0ff at hotmail.com] 
> > 
> > How do I make a unbufferedinput from the user?
> > (So they don't have to hit enter to send)
> > 
> > Is it possible to make it so that you don't see what you're 
> > typing.. e.g. to logins? or maybe replacing the output with * ??
> 
> If you're on Windows the msvcrt module is your friend

And the getpass module is made for - you guessed it - password entry :-)

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list