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
Bogus usage of floatclock in timemodule #66814
Comments
In Modules/timemodule.c, py_process_time() still uses floatclock() even when HAVE_CLOCK isn’t defined. |
What is your platform? time.process_time() supports many functions:
On POSIX, clock() is always tried as a fallback. Does your platform support at least one of these functions? |
I’m building against the Newlib libc, for the Wii, and it seems the issue leading to all of those functions not working is: Threading is disabled, and reentrant functions as well, which could explain that. But still, when pyconfig.h doesn’t define any HAVE_ macro to get the system time, I would expect py_process_time() to return None or something instead of failing to build. |
Please attach your pyconfig.h file. |
Sorry but the Wii console is not supported. You have to maintain your fork/patch. Python 3 don't support platforms without clock(). |
New changeset 1452520dfe7b by Victor Stinner in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: