Skip to content
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

gh-127553: Remove TODO comment in _pydatetime._isoweek1monday #127564

Merged

Conversation

bombs-kim
Copy link
Contributor

@bombs-kim bombs-kim commented Dec 3, 2024

Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

Comment on lines 2398 to 2399
# If the first weekday is after Thursday,
# ISO week 1 doesn't start until the next Monday
Copy link
Member

@picnixz picnixz Dec 3, 2024

Choose a reason for hiding this comment

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

This comment should be moved inside the if and I would only keep "ISO week 1 does not start until the next Monday" (or maybe no comment at all). Waiting for Erlend's opinion on this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure the comment is needed. The code below speaks for itself, IMO. Let's just remove the XXX comment. After all, that is what the PR title says this PR should do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@erlend-aasland Got it! I've reverted the change

@picnixz picnixz changed the title gh-127553: Fix TODO comment in _pydatetime._isoweek1monday gh-127553: Remove TODO comment in _pydatetime._isoweek1monday Dec 3, 2024
@picnixz picnixz added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Dec 3, 2024
@picnixz
Copy link
Member

picnixz commented Dec 3, 2024

I think it's better to backport that change so that users don't think we want to improve the implementation.

@erlend-aasland erlend-aasland merged commit e8b6b39 into python:main Jan 4, 2025
40 checks passed
@miss-islington-app
Copy link

Thanks @bombs-kim for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 4, 2025

GH-128500 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2025
@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 4, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 4, 2025

GH-128501 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jan 4, 2025
erlend-aasland pushed a commit that referenced this pull request Jan 4, 2025
erlend-aasland pushed a commit that referenced this pull request Jan 4, 2025
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 6, 2025
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
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.

3 participants