[Tutor] Help with file I/O.

Alan G alan.gauld at freenet.co.uk
Mon Aug 1 02:19:48 CEST 2005

>> You might find the getpass module useful for that...
>> It provides a raw_input style prompt that doesn't
>> display what the user types...

> Does it display stars instead?

No, its more secure than that, it doesn't display anything.

But like anything in Python the esiest way to find out 
is just to try it at the >>> prompt.

>>> import getpass
>>> pw = getpass.getpass('Password: ')
>>> print pw


Alan G

More information about the Tutor mailing list