python / python/cpython

Unable to iterate over lines in a file without a block of code

Open
#90,462 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 46304
Nosy @jaraco, @ericvsmith, @njsmith, @serhiy-storchaka, @sweeneyde

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 2022-01-08.04:09:44.308>
labels = ['type-feature', 'library', '3.11']
title = 'Unable to iterate over lines in a file without a block of code'
updated_at = <Date 2022-01-09.10:57:23.802>
user = 'https://github.com/jaraco'

bugs.python.org fields:

activity = <Date 2022-01-09.10:57:23.802>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2022-01-08.04:09:44.308>
creator = 'jaraco'
dependencies = []
files = []
hgrepos = []
issue_num = 46304
keywords = []
message_count = 8.0
messages = ['410075', '410078', '410090', '410114', '410115', '410118', '410122', '410137']
nosy_count = 5.0
nosy_names = ['jaraco', 'eric.smith', 'njs', 'serhiy.storchaka', 'Dennis Sweeney']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue46304'
versions = ['Python 3.11']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no implementation file, entry point, or test. Start by locating Python's file line-iteration implementation and its existing tests, then clarify the intended block-free behavior before making a change. Done means the expected iteration usage is supported and covered by regression tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.