Message181531
trace.py 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/trace.py", 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:41 | Dmitry.Jemerov | set | recipients:
+ Dmitry.Jemerov |
2013-02-06 15:14:41 | Dmitry.Jemerov | set | messageid: <1360163681.51.0.340414481892.issue17143@psf.upfronthosting.co.za> |
2013-02-06 15:14:41 | Dmitry.Jemerov | link | issue17143 messages |
2013-02-06 15:14:41 | Dmitry.Jemerov | create | |
|