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

When you create a file using file(path, "w") if the filename is illegal it throws an irrelevant error message #46760

Closed
kobipe3 mannequin opened this issue Mar 29, 2008 · 3 comments
Labels
performance Performance or resource usage

Comments

@kobipe3
Copy link
Mannequin

kobipe3 mannequin commented Mar 29, 2008

BPO 2508
Nosy @loewis, @facundobatista

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-03-29.16:34:01.927>
created_at = <Date 2008-03-29.15:55:35.062>
labels = ['performance']
title = 'When you create a file using file(path, "w") if the filename is illegal it throws an irrelevant error message'
updated_at = <Date 2008-03-29.16:34:01.915>
user = 'https://bugs.python.org/kobipe3'

bugs.python.org fields:

activity = <Date 2008-03-29.16:34:01.915>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2008-03-29.16:34:01.927>
closer = 'loewis'
components = []
creation = <Date 2008-03-29.15:55:35.062>
creator = 'kobipe3'
dependencies = []
files = []
hgrepos = []
issue_num = 2508
keywords = []
message_count = 3.0
messages = ['64703', '64705', '64706']
nosy_count = 3.0
nosy_names = ['loewis', 'facundobatista', 'kobipe3']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue2508'
versions = ['Python 2.5']

@kobipe3 kobipe3 mannequin added the performance Performance or resource usage label Mar 29, 2008
@kobipe3
Copy link
Mannequin Author

kobipe3 mannequin commented Mar 29, 2008

It throws an IOError: ... No such file or directory: %path% instead of
IOError: Invalid file name.

@facundobatista
Copy link
Member

How do you know, in a cross platform way, that the name is illegal
instead that the file or directory does not exist?

@loewis
Copy link
Mannequin

loewis mannequin commented Mar 29, 2008

This is not a bug in Python. The error that you get comes directly from
the operating system/C library, so please complain to your system vendor.

@loewis loewis mannequin closed this as completed Mar 29, 2008
@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
performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant