Skip to content

gh-80678: Document the preferred attribute of csv.Sniffer - #155068

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:csv-document-preferred
Aug 13, 2026
Merged

gh-80678: Document the preferred attribute of csv.Sniffer#155068
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:csv-document-preferred

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 2, 2026

Copy link
Copy Markdown
Member

The preferred attribute is public, and assigning to it changes the order in which the delimiters are preferred for breaking ties. sniff() now refers to it instead of repeating the list of characters.

It can be modified to change the order in which the delimiters are
preferred for breaking ties.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33872969 | 📁 Comparing ec30c14 against main (7b4165b)

  🔍 Preview build  

1 file changed
± library/csv.html

@serhiy-storchaka
serhiy-storchaka merged commit 1370f8a into python:main Aug 13, 2026
41 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 13, 2026
@serhiy-storchaka
serhiy-storchaka deleted the csv-document-preferred branch August 13, 2026 10:00
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155679 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155680 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 Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155681 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 Aug 13, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 13, 2026
…155068) (GH-155681)

It can be modified to change the order in which the delimiters are
preferred for breaking ties.
(cherry picked from commit 1370f8a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Aug 13, 2026
…155068) (GH-155680)

It can be modified to change the order in which the delimiters are
preferred for breaking ties.
(cherry picked from commit 1370f8a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
…onGH-155068)

It can be modified to change the order in which the delimiters are
preferred for breaking ties.
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.

1 participant