PEP 418: Replace "API design" title with "Alternatives: API design"

This commit is contained in:
Victor Stinner 2012-03-27 19:40:24 +02:00
parent ae01ce94ad
commit 4f31bacf76
1 changed files with 3 additions and 9 deletions

View File

@ -340,15 +340,8 @@ QueryUnbiasedInterruptTime() was introduced in Windows 7.
API design
==========
Two functions: time.monotonic(), time.try_monotonic()
-----------------------------------------------------
* time.try_monotonic() falls back to another clock if no monotonic clock is not
available or does not work, but it does never fail.
* time.monotonic() is not always available and may raise OSError.
Alternatives: API design
========================
One function with a flag: time.try_monotonic(strict=False)
----------------------------------------------------------
@ -364,6 +357,7 @@ poor API."
Raising NotImplementedError for a function is something uncommon in Python and
should be avoided.
One function, no flag
---------------------