classification
Title: Problems in win_getpass
Type: crash Stage:
Components: Windows Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, vizcayno
Priority: normal Keywords:

Created on 2007-12-10 02:50 by vizcayno, last changed 2008-01-06 22:29 by admin. This issue is now closed.

Messages (3)
msg58338 - (view) Author: vizcayno (vizcayno) Date: 2007-12-10 02:50
.python
Python 3.0a2 (r30a2:59397:59399, Dec  6 2007, 22:34:52) [MSC v.1500 32 
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import getpass
>>> clave = getpass.getpass('PASSWD= ').strip().upper()
PASSWD= Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python30\lib\getpass.py", line 63, in win_getpass
    pw = pw + c
TypeError: Can't convert 'bytes' object to str implicitly
>>>
 I get the error when I try to type the first letter of a password.
msg58349 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-12-10 15:40
I've added wide char API variants of the get and put commands to msvcrt
in the trunk. I'm going to fix the problem with the new functions.
msg58354 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-12-10 17:02
Fixed in r59451
History
Date User Action Args
2008-01-06 22:29:44adminsetkeywords: - py3k
versions: Python 3.0
2007-12-10 17:02:21christian.heimessetstatus: open -> closed
resolution: fixed
messages: + msg58354
2007-12-10 15:40:04christian.heimessetpriority: normal
assignee: christian.heimes
messages: + msg58349
keywords: + py3k
nosy: + christian.heimes
2007-12-10 02:50:27vizcaynocreate