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

zipimport produces incomplete IOError instances #42571

Closed
freddrake opened this issue Nov 8, 2005 · 3 comments
Closed

zipimport produces incomplete IOError instances #42571

freddrake opened this issue Nov 8, 2005 · 3 comments
Labels
extension-modules C modules in the Modules dir

Comments

@freddrake
Copy link
Member

BPO 1351707
Nosy @freddrake, @birkenfeld

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 2006-02-19.09:39:16.000>
created_at = <Date 2005-11-08.21:43:37.000>
labels = ['extension-modules']
title = 'zipimport produces incomplete IOError instances'
updated_at = <Date 2006-02-19.09:39:16.000>
user = 'https://github.com/freddrake'

bugs.python.org fields:

activity = <Date 2006-02-19.09:39:16.000>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2005-11-08.21:43:37.000>
creator = 'fdrake'
dependencies = []
files = []
hgrepos = []
issue_num = 1351707
keywords = []
message_count = 3.0
messages = ['26827', '26828', '26829']
nosy_count = 3.0
nosy_names = ['fdrake', 'georg.brandl', 'krumms']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1351707'
versions = ['Python 2.5']

@freddrake
Copy link
Member Author

The get_data() method on the zipimport.zipimporter
object produces IOError exceptions that only have an
error message. It should use
PyErr_SetFromErrnoWithFilename() instead of
PyErr_Format() for IOError exceptions.

This should be fixed for both Python 2.4.3 and 2.5.

@freddrake freddrake added the extension-modules C modules in the Modules dir label Nov 8, 2005
@freddrake freddrake added the extension-modules C modules in the Modules dir label Nov 8, 2005
@krumms
Copy link
Mannequin

krumms mannequin commented Nov 10, 2005

Logged In: YES
user_id=315535

Patch against HEAD here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1352711&group_id=5470&atid=305470

@birkenfeld
Copy link
Member

Logged In: YES
user_id=1188172

Fixed in rev. 42487, 42488.

@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
extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

2 participants