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

help> modules os raises UnicodeDecodeError #47395

Closed
msyang mannequin opened this issue Jun 19, 2008 · 3 comments
Closed

help> modules os raises UnicodeDecodeError #47395

msyang mannequin opened this issue Jun 19, 2008 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@msyang
Copy link
Mannequin

msyang mannequin commented Jun 19, 2008

BPO 3145
Nosy @amauryfa

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 = None
closed_at = <Date 2008-06-19.20:55:09.753>
created_at = <Date 2008-06-19.19:58:16.910>
labels = ['interpreter-core', 'type-bug']
title = 'help> modules os raises UnicodeDecodeError'
updated_at = <Date 2008-06-19.20:55:09.752>
user = 'https://bugs.python.org/msyang'

bugs.python.org fields:

activity = <Date 2008-06-19.20:55:09.752>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2008-06-19.20:55:09.753>
closer = 'amaury.forgeotdarc'
components = ['Interpreter Core']
creation = <Date 2008-06-19.19:58:16.910>
creator = 'msyang'
dependencies = []
files = []
hgrepos = []
issue_num = 3145
keywords = []
message_count = 3.0
messages = ['68419', '68421', '68425']
nosy_count = 2.0
nosy_names = ['amaury.forgeotdarc', 'msyang']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3145'
versions = ['Python 3.0']

@msyang
Copy link
Mannequin Author

msyang mannequin commented Jun 19, 2008

>>> help()
help> modules os
Here is a list of matching modules.  Enter any module name to get more help.

posix - This module provides access to operating system
...
stringprep - Library that exposes various tables found in the StringPrep
RFC 3454.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
...
File "/home/michael/python3/3.0b1/lib/python3.0/codecs.py", line 300, in
decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 8-11:
invalid data

@msyang msyang mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Jun 19, 2008
@amauryfa
Copy link
Member

I added some print statements, and it appears that the function is
trying to read get the source of "test.badsyntax_pep3120" !

@amauryfa
Copy link
Member

Corrected with r64411. Thanks for the report!

@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
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant