Re: [Python-Dev] [Python-checkins] cpython: don't depend on __debug__ because it's baked in at freeze time (issue #16046)

2012年9月25日 21:27:24 -0700

2012年9月25日 Nick Coghlan <[email protected]>:
> On Wed, Sep 26, 2012 at 1:23 AM, benjamin.peterson
> <[email protected]> wrote:
>> If debug_override is not None, then it must be a boolean and is taken as
>> - the value of __debug__ instead.
>> + the value of bool(sys.flags.optimize) instead.
>
> s/bool(sys.flags.optimize)/"not sys.flags.optimize"/?
>
> It may be better to just rephrase this sentence entirely to better
> account for the fact that we're now checking the runtime
> sys.flags.optimize value rather than the compile time __debug__ value.
Good point; I rephrased it.
-- 
Regards,
Benjamin
_______________________________________________
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