[ python-Bugs-975404 ] logging module uses deprecate apply()

SourceForge.net noreply at sourceforge.net
Wed Jun 23 19:47:35 EDT 2004


Bugs item #975404, was opened at 2004-06-18 09:52
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=975404&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Barry Alan Scott (barry-scott)
Assigned to: Nobody/Anonymous (nobody)
Summary: logging module uses deprecate apply()

Initial Comment:
The use of apply in logging causes warning to be issued
by python
when turning programs into executables with Gordon's
McMillians
Installer and probably others.

Replacing the apply() calls with the modern idium would
fix the
problem.

The work around is the add "import warnings" in the
main module
of your program.


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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-06-23 18:47

Message:
Logged In: YES 
user_id=80475

FWIW, the warning was silenced in 2.3.4 and 2.4.

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

Comment By: Brett Cannon (bcannon)
Date: 2004-06-19 15:57

Message:
Logged In: YES 
user_id=357491

If you read PEP 291 (http://www.python.org/peps/pep-0291.html) you 
will notice that the logging module is to be kept backwards-compatible to 
1.5.2 .  This requires using apply() instead of ``*args, **kwargs``.

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

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



More information about the Python-bugs-list mailing list