Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems in win_getpass #45919

Closed
vizcayno mannequin opened this issue Dec 10, 2007 · 3 comments
Closed

Problems in win_getpass #45919

vizcayno mannequin opened this issue Dec 10, 2007 · 3 comments
Assignees
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@vizcayno
Copy link
Mannequin

vizcayno mannequin commented Dec 10, 2007

BPO 1578
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tiran'
closed_at = <Date 2007-12-10.17:02:21.115>
created_at = <Date 2007-12-10.02:50:26.991>
labels = ['OS-windows', 'type-crash']
title = 'Problems in win_getpass'
updated_at = <Date 2008-01-06.22:29:44.514>
user = 'https://bugs.python.org/vizcayno'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:44.514>
actor = 'admin'
assignee = 'christian.heimes'
closed = True
closed_date = <Date 2007-12-10.17:02:21.115>
closer = 'christian.heimes'
components = ['Windows']
creation = <Date 2007-12-10.02:50:26.991>
creator = 'vizcayno'
dependencies = []
files = []
hgrepos = []
issue_num = 1578
keywords = []
message_count = 3.0
messages = ['58338', '58349', '58354']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'vizcayno']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue1578'
versions = ['Python 3.0']

@vizcayno
Copy link
Mannequin Author

vizcayno mannequin commented Dec 10, 2007

.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.

@vizcayno vizcayno mannequin added OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Dec 10, 2007
@tiran
Copy link
Member

tiran commented Dec 10, 2007

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.

@tiran tiran self-assigned this Dec 10, 2007
@tiran
Copy link
Member

tiran commented Dec 10, 2007

Fixed in r59451

@tiran tiran closed this as completed Dec 10, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant