Skip to content

gh-74232: Add a note about roundtrip of non-float numerics in CSV #134963

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

Conversation

serhiy-storchaka
Copy link
Member

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

Some numeric types, such as :class:`bool`, :class:`~fractions.Fraction`,
or :class:`~enum.IntEnum`, have a string representation that cannot be
converted to :class:`float`.
They cannot be read in the :data:`QUOTE_NONNUMERIC` and
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
They cannot be read in the :data:`QUOTE_NONNUMERIC` and
They cannot be read in the :data:`!QUOTE_NONNUMERIC` and

Copy link
Member Author

Choose a reason for hiding this comment

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

While this is in the description for QUOTE_NONNUMERIC, but it is quite distant from the beginning, so a link will not harm.

@serhiy-storchaka serhiy-storchaka merged commit e814f43 into python:main Jun 2, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Jun 2, 2025
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. 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 Jun 2, 2025
@serhiy-storchaka serhiy-storchaka deleted the csv-QUOTE_NONNUMERIC-docs branch June 2, 2025 20:31
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 2, 2025

GH-135048 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
@bedevere-app
Copy link

bedevere-app bot commented Jun 2, 2025

GH-135049 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 Jun 2, 2025
serhiy-storchaka added a commit that referenced this pull request Jun 2, 2025
…CSV (GH-134963) (GH-135049)

(cherry picked from commit e814f43)

Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka added a commit that referenced this pull request Jun 2, 2025
…CSV (GH-134963) (GH-135048)

(cherry picked from commit e814f43)

Co-authored-by: Serhiy Storchaka <[email protected]>
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.

3 participants