A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-April/118472.html below:

[Python-Dev] an alternative to embedding policy in PEP 418

[Python-Dev] an alternative to embedding policy in PEP 418 [Python-Dev] an alternative to embedding policy in PEP 418Victor Stinner victor.stinner at gmail.com
Wed Apr 4 13:04:13 CEST 2012
2012/4/4 Antoine Pitrou <solipsis at pitrou.net>:
> On Wed, 4 Apr 2012 02:02:12 +0200
> Victor Stinner <victor.stinner at gmail.com> wrote:
>> > Lennart Regebro wrote:
>> >> Well, get_clock(monotonic=True, highres=True) would be a vast
>> >> improvement over get_clock(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
>> get_clock(monotonic=False) or get_clock(monotonic="yes")?
>
> Since when are booleans magical? Has this thread gone totally insane?

It depends if the option supports other values. But as I understood,
the keyword value must always be True.

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4