You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
time.clock() marked for removal in 3.8 – still there. #81076
New changeset e250061 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-36895: remove time.clock() as per removal notice. (GH-13270) e250061
If we find a _good_ reason to delay this removal a cycle during the 3.8 betas we can bring it back.
thanks for staying on top of the removal plan!
Thanks to you for the quick integration; I'm happy if we need to bring it back, but at least having it removed during betas/alphas will nudge people toward updating their code.
New changeset 24482bd by Victor Stinner (Matthias Bussonnier) in branch '3.7':
[3.7] bpo-36895: document time.clock() has been removed in 3.8 (GH-13287) 24482bd
Activity
Carreau commentedon May 12, 2019
Deprecation message in
timemodule.csays:Should be bumped to 3.9 – or time.clock should be removed.
Deprecation was added by Victor Stinner.
Carreau commentedon May 12, 2019
Vstiner, added you as you added the deprecation notice. I'm happy to take care of the removal and/or update the deprecation warning to 3.9.
gpshead commentedon May 13, 2019
New changeset e250061 by Gregory P. Smith (Matthias Bussonnier) in branch 'master':
bpo-36895: remove time.clock() as per removal notice. (GH-13270)
e250061
gpshead commentedon May 13, 2019
I saw the PR before the bug comment. merged. if we find a _good_ reason to delay this removal a cycle during the 3.8 betas we can bring it back.
thanks for staying on top of the removal plan!
Carreau commentedon May 13, 2019
Thanks to you for the quick integration; I'm happy if we need to bring it back, but at least having it removed during betas/alphas will nudge people toward updating their code.
vstinner commentedon May 13, 2019
I would prefer to remove time.clock() documentation if the function is removed.
Would you mind to update Python 3.7 documentation to mention that the function is removed from Python 3.8?
https://docs.python.org/3.7/library/time.html#time.clock
In short, use ".. deprecated-removed:: 3.3 3.8 " in Python 3.7 doc.
tirkarthi commentedon May 13, 2019
Should this section also be updated about time.clock removal?
https://docs.python.org/3.8/whatsnew/3.8.html#api-and-feature-removals
Carreau commentedon May 13, 2019
Done:
vstinner commentedon May 13, 2019
New changeset 24482bd by Victor Stinner (Matthias Bussonnier) in branch '3.7':
[3.7] bpo-36895: document time.clock() has been removed in 3.8 (GH-13287)
24482bd
vstinner commentedon May 13, 2019
New changeset b6a09ae by Victor Stinner (Matthias Bussonnier) in branch 'master':
bpo-36895: Undocument removed time.clock (GH-13286)
b6a09ae
vstinner commentedon May 27, 2019
Nope, it's now gone :-) I close the issue.