Skip to content

gh-110850: PyTime_Time() return 0 on success #115713

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
merged 1 commit into from
Feb 20, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 20, 2024

@vstinner
Copy link
Member Author

@encukou: Would you mind to review?

The doc says: https://docs.python.org/dev/c-api/time.html#clock-functions

The functions return 0 on success, or -1 (with an exception set) on failure.

I suppose that it's a typo and not a deliberate choice to return 1 on success only in this specific function.

@encukou encukou merged commit d24bed5 into python:main Feb 20, 2024
@vstinner vstinner deleted the pytime_time_return0 branch February 20, 2024 13:54
@vstinner
Copy link
Member Author

Thanks for the proof reading @encukou ;-)

woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request Jan 22, 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.

2 participants