[Patches] [ python-Patches-542659 ] PyCode_New NULL parameters cleanup

noreply@sourceforge.net noreply@sourceforge.net
Sun, 14 Apr 2002 02:54:16 -0700


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

Category: Core (C code)
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 1
Submitted By: Olivier Dormond (odormond)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyCode_New NULL parameters cleanup

Initial Comment:
This patch remove the creation of an empty tuple for
freevars or cellvars if they are equal to NULL because
this case is handle earlier (at the same time all the
other parameters are checked) by raising a
PyErr_BadInternalCall.

It's almost a oneliner.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-04-14 11:54

Message:
Logged In: YES 
user_id=21627

Thanks for the patch, appplied as compile.c 2.240

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

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