fileinput.input(path, inplace=True) crashes for valid filename with 252-255 characters
Open
Nobody has claimed this yet.
stdlib
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 45965 |
|---|---|
| Nosy | @jamilraichouni |
| Files |
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 = None
created_at = <Date 2021-12-02.15:46:58.990>
labels = ['type-feature', 'library', '3.10']
title = 'fileinput.input(path, inplace=True) crashes for valid filename with 252-255 characters'
updated_at = <Date 2021-12-02.15:46:58.990>
user = 'https://github.com/jamilraichouni'
bugs.python.org fields:
activity = <Date 2021-12-02.15:46:58.990>
actor = 'jamil.raichouni'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-12-02.15:46:58.990>
creator = 'jamil.raichouni'
dependencies = []
files = ['50471']
hgrepos = []
issue_num = 45965
keywords = []
message_count = 1.0
messages = ['407534']
nosy_count = 1.0
nosy_names = ['jamil.raichouni']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue45965'
versions = ['Python 3.10']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open long_filename_passed_to_fileinput.ipynb and reproduce the failure through fileinput.input(path, inplace=True) with valid 252–255-character filenames. Trace the fileinput.input entry point to identify the failing behavior; done means those filenames no longer crash, with the behavior verified against the notebook example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100