<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/_warnings.c, branch v2.7.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/_warnings.c?h=v2.7.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/_warnings.c?h=v2.7.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2011-07-05T03:27:16Z</updated>
<entry>
<title>start out this branch always with filename NULL</title>
<updated>2011-07-05T03:27:16Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2011-07-05T03:27:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4833c98f85c1ec06a7451f56e1bf3b1f9951da0b'/>
<id>urn:sha1:4833c98f85c1ec06a7451f56e1bf3b1f9951da0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>plug refleak</title>
<updated>2011-07-04T03:18:34Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2011-07-04T03:18:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b6c60530b1f6c86f9c3e509a5ccebb2496f0c89'/>
<id>urn:sha1:9b6c60530b1f6c86f9c3e509a5ccebb2496f0c89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #12467: warnings: fix a race condition if a warning is emitted at</title>
<updated>2011-07-04T01:05:37Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-07-04T01:05:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=65c153547ba6a41d11d3d04f84bacb5645a54e5e'/>
<id>urn:sha1:65c153547ba6a41d11d3d04f84bacb5645a54e5e</id>
<content type='text'>
shutdown, if globals()['__file__'] is None.
</content>
</entry>
<entry>
<title>#11515: fix several typos. Patch by Piotr Kasprzyk.</title>
<updated>2011-03-15T16:55:01Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2011-03-15T16:55:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=24b07bcba350bb86c4d6ca446e1564647a199868'/>
<id>urn:sha1:24b07bcba350bb86c4d6ca446e1564647a199868</id>
<content type='text'>
</content>
</entry>
<entry>
<title>When DeprecationWarning was silenced by default, it also silenced any use of -Q</title>
<updated>2010-04-25T22:33:36Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-04-25T22:33:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1994969c15a055d2f9479d3bc10fb6304b2979ed'/>
<id>urn:sha1:1994969c15a055d2f9479d3bc10fb6304b2979ed</id>
<content type='text'>
by default as well. This change fixes that by treating -Q like -3 when it comes
to DeprecationWarning; using it causes the silencing to not occur.

Fixes issue #7319.
</content>
</entry>
<entry>
<title>Remove C++/C99-style comments.</title>
<updated>2010-01-15T01:31:45Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-01-15T01:31:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0bc77474aa37b1275c06fa806a59c68acc0eabc7'/>
<id>urn:sha1:0bc77474aa37b1275c06fa806a59c68acc0eabc7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The silencing of DeprecationWarning was not taking -3 into consideration. Since</title>
<updated>2010-01-14T20:00:28Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-01-14T20:00:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ffa43db4892d3a836c63911c5a13a8be5670fa5'/>
<id>urn:sha1:3ffa43db4892d3a836c63911c5a13a8be5670fa5</id>
<content type='text'>
Py3K warnings are DeprecationWarning by default this was causing -3 to
essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
used.

Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
</content>
</entry>
<entry>
<title>DeprecationWarning is now silent by default.</title>
<updated>2010-01-10T02:56:19Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-01-10T02:56:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6fdd3dcb6a9998dbe7b707d7a3726733cc03681a'/>
<id>urn:sha1:6fdd3dcb6a9998dbe7b707d7a3726733cc03681a</id>
<content type='text'>
This was originally suggested by Guido, discussed on the stdlib-sig mailing
list, and given the OK by Guido directly to me. What this change essentially
means is that Python has taken a policy of silencing warnings that are only
of interest to developers by default. This should prevent users from seeing
warnings which are triggered by an application being run against a new
interpreter before the app developer has a chance to update their code.

Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
for helping with the issue.
</content>
</entry>
<entry>
<title>Issue #6415: Fixed warnings.warn sagfault on bad formatted string.</title>
<updated>2009-07-17T06:20:46Z</updated>
<author>
<name>Hirokazu Yamamoto</name>
<email>ocean-city@m2.ccsnet.ne.jp</email>
</author>
<published>2009-07-17T06:20:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e78e5d2e515167df8fdf0a551e8333c31c6a1ba3'/>
<id>urn:sha1:e78e5d2e515167df8fdf0a551e8333c31c6a1ba3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue 5954, PyFrame_GetLineNumber:</title>
<updated>2009-05-08T22:23:21Z</updated>
<author>
<name>Jeffrey Yasskin</name>
<email>jyasskin@gmail.com</email>
</author>
<published>2009-05-08T22:23:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f7f858d1415514cb9a76a5b7da8ee6ccb774e6f4'/>
<id>urn:sha1:f7f858d1415514cb9a76a5b7da8ee6ccb774e6f4</id>
<content type='text'>
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.

The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&amp;q=PyCode_Addr2Line),
which is replaced by the tb_lineno field.  So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
</content>
</entry>
</feed>
