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

2012年4月05日 01:23:26 -0700

On Thu, Apr 5, 2012 at 01:10, Victor Stinner <[email protected]> wrote:
> 2012年4月4日 Lennart Regebro <[email protected]>:
>> On Wed, Apr 4, 2012 at 13:04, Victor Stinner <[email protected]> 
>> wrote:
>>> It depends if the option supports other values. But as I understood,
>>> the keyword value must always be True.
>>
>> Or False, obviously. Which would also be default.
>
> Ok for the default, but what happens if the caller sets an option to
> False? Does get_clock(monotonic=False) return a non-monotonic clock?
> (I guess no, but it may be confusing.)
Good point, but the same does for using flags. If you don't pass in
the MONOTONIC flag, what happens? Only reading the documentation will
tell you. As such this, if anything, is an indication that the
get_clock() API isn't ideal in any incarnation.
//Lennart
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to