[Python-Dev] an alternative to embedding policy in PEP 418 (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Wed Apr 4 11:46:31 CEST 2012


On Wed, 4 Apr 2012 02:02:12 +0200 Victor Stinner <victor.stinner at gmail.com> wrote:

> Lennart Regebro wrote: >> Well, getclock(monotonic=True, highres=True) would be a vast >> improvement over getclock(MONOTONIC|HIRES).

I don't like this keyword API because you have to use a magically marker (True). Why True? What happens if I call getclock(monotonic=False) or getclock(monotonic="yes")?

Since when are booleans magical? Has this thread gone totally insane?

Regards

Antoine.



More information about the Python-Dev mailing list