On 7/19/2010 7:37 AM, John Palmer wrote:
Hi Alan thanks for the help. I did try the getpass module, I think I used:

getpass.getpass()

This actually prompted the user to enter a password, which isn't really what I want. Unless there's something i'm missing with this module? I'll take another look anyway.

Reading the documentation (15.7 in Python 3):

The getpass module provides two functions:

getpass.getpass(/prompt='Password: '/, /stream=None/)ΒΆ <http://docs.python.org/py3k/library/getpass.html?highlight=getpass#getpass.getpass>

   Prompt the user for a password without echoing. The user is prompted
   using the string /prompt/, which defaults to 'Password: '.

HTH

--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to