◐ Shell
reader mode source ↗
Skip to content

WIP: bpo-1100942: Add datetime.time.strptime and datetime.date.strptime#5578

Closed
matrixise wants to merge 16 commits into
python:mainfrom
matrixise:bpo-1100942
Closed

WIP: bpo-1100942: Add datetime.time.strptime and datetime.date.strptime#5578
matrixise wants to merge 16 commits into
python:mainfrom
matrixise:bpo-1100942

Conversation

@matrixise

@matrixise matrixise commented Feb 7, 2018

Copy link
Copy Markdown
Member

Add datetime.date.strptime and datetime.time.strptime.

Fix the documentation of _strptime._strptime, the documentation was
wrong, return a 3-tuple and not a 2-tuple

Co-authored-by: Alexander Belopolsky alexander.belopolsky@gmail.com
Co-authored-by: Amaury Forgeot d'Arc amauryfa@gmail.com
Co-authored-by: Berker Peksag berker.peksag@gmail.com
Co-authored-by: Josh-sf josh-sf@users.sourceforge.net
Co-authored-by: Juarez Bochi jbochi@gmail.com
Co-authored-by: Maciej Szulik soltysh@gmail.com
Co-authored-by: Stéphane Wirtel stephane@wirtel.be
Co-authored-by: Matheus Vieira Portela matheus.v.portela@gmail.com

https://bugs.python.org/issue1100942

@matrixise

Copy link
Copy Markdown
Member Author

This PR is for a very long issue, since 2005. We have a PR in 2018 👍

@Mariatta

Mariatta commented Feb 9, 2018

Copy link
Copy Markdown
Member

I restarted the travis job. It still did not do the full CPython test suite. So please rebase :)

@matrixise

Copy link
Copy Markdown
Member Author

Thanks, I didn't see your message, works on this issue today.

@matrixise

Copy link
Copy Markdown
Member Author

@Mariatta rebased and the tests pass on the CIs

@matrixise

Copy link
Copy Markdown
Member Author

Hi @pganssle

thank you for your review, I am going to fix it asap but I am not the author of the code, just the author of the PR. so, maybe I would need your help. Thanks

@matrixise

Copy link
Copy Markdown
Member Author

@pganssle I just rebased my branch with master. I am going to work on this PR. Do you want to help me because you are mister dateutil ;-)

@pganssle

pganssle commented Oct 5, 2018

Copy link
Copy Markdown
Member

@matrixise Sorry this is on my list but probably can't get to it until the end of the month. 😟

@matrixise

Copy link
Copy Markdown
Member Author

@pganssle ok, in this case, I will try to fix all the issues alone ;-) but I am not worried ;-)

@matrixise

Copy link
Copy Markdown
Member Author

Hi, I just updated this PR with master.

@matrixise

Copy link
Copy Markdown
Member Author

@pganssle when you have time, could you review this PR, we started together, just comment when you find a mistake, thanks

@matrixise

Copy link
Copy Markdown
Member Author

ping @pganssle ;-)

@pganssle pganssle left a comment

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.

Hide comment

I haven't had a chance to look at the PR thoroughly, but I have a first-pass review of things that should be changed.

I also haven't checked exactly how you are doing it, but I believe we may want to / be able to refactor the tests a bit to take advantage of the existing test suite for datetime.strptime by separating out the date-only and time-only formats and reusing the tests with date, time and datetime.

Additionally, I should note that it's unfortunate that if this is merged, we'll have time.strptime and datetime.time.strptime, the first of which returns a timetuple (which is actually more like a datetime), and the second returning a datetime.time object. I don't see any way around this, but it will add confusion. :(

@matrixise

Copy link
Copy Markdown
Member Author

@pganssle thanks for your review, I am going to update this PR asap.

@matrixise

Copy link
Copy Markdown
Member Author

ok, rebased with the last master.

@matrixise

matrixise commented Nov 11, 2018 via email

Copy link
Copy Markdown
Member Author

@matrixise

Copy link
Copy Markdown
Member Author

@pganssle Are you ready for a new review of this PR? I will continue my PR ;-)

23 hidden items Load more…

@vadmium vadmium left a comment

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.

Hide comment

I suggest you check the discussion about the previous patches. I noticed I repeated some old comments and ideas.

@matrixise matrixise changed the title bpo-1100942: Add datetime.time.strptime and datetime.date.strptime Mar 24, 2019
@csabella

Copy link
Copy Markdown
Contributor

@matrixise, @pganssle There's been a lot of work done on this one. Is it something we should try to move forward on? Thanks!

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Aug 15, 2022
@abalkin abalkin marked this pull request as draft February 8, 2023 14:59
@abalkin abalkin self-assigned this Feb 8, 2023
@abalkin abalkin linked an issue Feb 8, 2023 that may be closed by this pull request
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label May 1, 2023
@zitterbewegung

Copy link
Copy Markdown
Contributor

@matrixise, @pganssle, @csabella while there has been lots of work for this where are we at on this? Its around a bit over two years old for the PR but, these new features would be great!

@vstinner

Copy link
Copy Markdown
Member

where are we at on this?

No activity since 2019. Someone has to step in and restart the work (ex: create a new PR and update the PR).

@nineteendo

Copy link
Copy Markdown
Contributor

I'm going to try to resolve the merge conflicts and make the requested changes.

@nineteendo

Copy link
Copy Markdown
Contributor

Looks like I'll have to start over.

@vstinner

Copy link
Copy Markdown
Member

I close the inactive PR.

@vstinner vstinner closed this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add datetime.time.strptime and datetime.date.strptime