Skip to content

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

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:csv-QUOTE_NONNUMERIC-docs
Jun 2, 2025
Merged

gh-74232: Add a note about roundtrip of non-float numerics in CSV#134963
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:csv-QUOTE_NONNUMERIC-docs

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

Comment thread Doc/library/csv.rst
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
…SV (pythonGH-134963)

(cherry picked from commit e814f43)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@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
…SV (pythonGH-134963)

(cherry picked from commit e814f43)

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

bedevere-app Bot commented Jun 2, 2025

Copy link
Copy Markdown

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

bedevere-app Bot commented Jun 2, 2025

Copy link
Copy Markdown

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 <storchaka@gmail.com>
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 <storchaka@gmail.com>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
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