getpass.getpass() bugged?

Garrett G. Hodgson garry at research.att.com
Fri Sep 3 11:46:40 EDT 1999


Matthias Grutzeck wrote:
> 
> super_banane at yahoo.com wrote:
> > >>> import getpass
> > >>> getpass.getpass()
> > Password: hello
> > 'hello'
> > >>>
> 
> Without assigning the returnvalue to a variable the interpreter will
> show you the result of the call. If you have a look at the my example,
> you will see the behaviour...

perhaps this is necessary, but it is not sufficient:

--> python
Python 1.5.2b2 (#1, Feb 22 1999, 15:52:39) [C] on irix646
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import getpass
>>> foo=getpass.getpass()
Password: oops
>>> print foo
oops

-- 
Garry Hodgson			"Hey, mister, can ya tell me,
garry at sage.att.com		where a man might find a bed?"
Software Innovation Services	He just grinned and shook my hand,
AT&T Labs			"No", was all he said.




More information about the Python-list mailing list