Skip to content

gh-132813: Improve error messages for incorrect types and values of csv.Dialog attributes #133241

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

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 1, 2025

Make them similar to PyArg_Parse error messages, mention None as a possible value, show a wrong type and the string length.

…s of csv.Dialect attributes

Make them similar to PyArg_Parse error messages, mention None as
a possible value, show a wrong type and the string length.
Copy link

@aterrel aterrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely a lot clearer than before.

@serhiy-storchaka serhiy-storchaka added the needs backport to 3.14 bugs and security fixes label May 21, 2025
@serhiy-storchaka serhiy-storchaka merged commit df98a47 into python:main Jun 2, 2025
41 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the csv-error-messages branch June 2, 2025 20:35
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
…s of csv.Dialog attributes (pythonGH-133241)

Make them similar to PyArg_Parse error messages, mention None as
a possible value, show a wrong type and the string length.
(cherry picked from commit df98a47)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 2, 2025

GH-135050 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 Jun 2, 2025
serhiy-storchaka added a commit that referenced this pull request Jun 2, 2025
…es of csv.Dialog attributes (GH-133241) (GH-135050)

Make them similar to PyArg_Parse error messages, mention None as
a possible value, show a wrong type and the string length.
(cherry picked from commit df98a47)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants