
November 24th, 2003, 03:32 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
Believe it or not, no catch that i can see  .. tested and retested.. as long as you don't run though IDLE (which gives you a warning message) you wont see anything user enters! Kinda an invisable version of raw_input(), and very cross platform!
A lil example, but too basic to be of any real use though!
Code:
import getpass
passwd = getpass.getpass('enter your password')
raw_input('Press ENTER to show the password..')
print passwd
raw_input('Press ENTER to exit..')
Nicely spotted Perc
Mark.
__________________
programming language development: www.netytan.com – Hula
|