[Patches] [ python-Patches-836942 ] Avoid "apply" warnings in "logging", still works in 1.52

SourceForge.net noreply at sourceforge.net
Wed Nov 5 20:56:23 EST 2003


Patches item #836942, was opened at 2003-11-05 17:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=836942&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jimmy Retzlaff (jretz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Avoid "apply" warnings in "logging", still works in 1.52

Initial Comment:
Avoid warnings in Python 2.3+ by defining an apply 
function in terms of the new calling semantics (i.e., 
*args/**kwargs). If that fails because the new calling 
semantics are unavailable then leave apply untouched 
for 1.52 compatibility.

eval is used to define the function so the SyntaxError 
can be caught on versions of Python without the new 
calling semantics.

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

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



More information about the Patches mailing list