You could use fcntl.ioctl() or the termios module (undocumented), or
you could do
os.system("stty -echo")
passwd = raw_input()
os.system("stty echo")
I don't know of non-UNIX solutions.
--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>