[Patches] [ python-Patches-548833 ] Optimize code for assert statement

noreply@sourceforge.net noreply@sourceforge.net
Thu, 25 Apr 2002 17:21:32 -0700


Patches item #548833, was opened at 2002-04-25 18:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=548833&group_id=5470

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Guido van Rossum (gvanrossum)
Summary: Optimize code for assert statement

Initial Comment:
The compiler knows the value of __debug__ so there is
no
need to test it at run time.

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-04-25 20:21

Message:
Logged In: YES 
user_id=6380

Hm, this was intentional. You can still set __debug__ (just
import __builtin__).

But I'm not sure if it was ever used or documented.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=548833&group_id=5470