Author Dmitry.Jemerov
Recipients Dmitry.Jemerov
Date 2013-02-06.15:14:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Content in Python 3.3 standard library uses the _warn function without importing it. As a result, an attempt to use a now-deprecated function fails with a NameError:

> python3
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import trace
>>> trace.modname('')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/", line 827, in modname
    _warn("The trace.modname() function is deprecated",
NameError: global name '_warn' is not defined
Date User Action Args
2013-02-06 15:14:41Dmitry.Jemerovsetrecipients: + Dmitry.Jemerov
2013-02-06 15:14:41Dmitry.Jemerovsetmessageid: <>
2013-02-06 15:14:41Dmitry.Jemerovlinkissue17143 messages
2013-02-06 15:14:41Dmitry.Jemerovcreate