Skip to content

Conversation

@maurycy
Copy link
Contributor

@maurycy maurycy commented Aug 19, 2025

Please see gh-137952 for the context.

The question is whether we should fix the docs or the code.

I err on the docs: csv.Sniffer() is very old, users may rely on this behavior without knowing it.


📚 Documentation preview 📚: https://cpython-previews--137953.org.readthedocs.build/

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Aug 19, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Aug 19, 2025
@maurycy maurycy changed the title gh-137952: update csv.Sniffer().has_header docs to describe the actual off-by-onish behavior gh-137952: update csv.Sniffer().has_header() docs to describe the actual off-by-onish behavior Aug 19, 2025
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@gpshead gpshead added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 11, 2025
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
@gpshead gpshead enabled auto-merge (squash) November 11, 2025 23:58
@gpshead gpshead merged commit 0d7b48a into python:main Nov 12, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Nov 12, 2025
@miss-islington-app
Copy link

Thanks @maurycy for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 12, 2025
… the actual off-by-onish behavior (pythonGH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------
(cherry picked from commit 0d7b48a)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 12, 2025

GH-141434 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 12, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 12, 2025
… the actual off-by-onish behavior (pythonGH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------
(cherry picked from commit 0d7b48a)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 12, 2025

GH-141435 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 12, 2025
gpshead pushed a commit that referenced this pull request Nov 12, 2025
…e the actual off-by-onish behavior (GH-137953) (#141434)

gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------
(cherry picked from commit 0d7b48a)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
gpshead pushed a commit that referenced this pull request Nov 12, 2025
…e the actual off-by-onish behavior (GH-137953) (#141435)

gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------
(cherry picked from commit 0d7b48a)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@maurycy maurycy deleted the csv-sniffer-has_headers-off-by-one branch November 17, 2025 21:57
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
… the actual off-by-onish behavior (pythonGH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants