Content-Length: 393701 | pFad | https://github.com/python/cpython/pull/131007

58 gh-89157: Make C and Python implementation of `datetime.date.fromisoformat` consistent. by StanFromIreland · Pull Request #131007 · python/cpython · GitHub
Skip to content

gh-89157: Make C and Python implementation of datetime.date.fromisoformat consistent.#131007

Merged
hugovk merged 7 commits into
python:mainfrom
StanFromIreland:we-want-ascii
Apr 24, 2025
Merged

gh-89157: Make C and Python implementation of datetime.date.fromisoformat consistent.#131007
hugovk merged 7 commits into
python:mainfrom
StanFromIreland:we-want-ascii

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Mar 9, 2025

Copy link
Copy Markdown
Member

@StanFromIreland

Copy link
Copy Markdown
Member Author

Implementation is fine I just need to clear up tests as C raises a Value error but Python a TypeError will get this done soon enough

@hugovk hugovk merged commit 4924bcf into python:main Apr 24, 2025
@StanFromIreland StanFromIreland deleted the we-want-ascii branch April 24, 2025 14:27
@StanFromIreland

Copy link
Copy Markdown
Member Author

Thanks for merging @hugovk :-)

@hugovk

hugovk commented Apr 24, 2025

Copy link
Copy Markdown
Member

Thanks for the PR!

Comment thread Lib/_pydatetime.py
'2009-04-19T03:15:4500:00', # Bad time zone separator
'2009-04-19T03:15:45.123456+24:30', # Invalid time zone offset
'2009-04-19T03:15:45.123456-24:30', # Invalid negative offset
'2009-04-10ᛇᛇᛇᛇᛇ12:15', # Too many unicode separators

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why was this changed? The problem isn't that there are Unicode characters but that there is more than one of them. The old description was now accurate.

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.

It is a bit late now, it probably should have been asked a month ago when you approved this. In hindsight I agree the previous one was better.

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.

4 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/131007

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy