Message201562
> New changeset 1bbedfb20932 by Victor Stinner in branch 'default':
> Issue #19421: fix a check in warnings.warn() to be able to use it during Python
> http://hg.python.org/cpython/rev/1bbedfb20932
Without this fix, the following script crashs with an assertion error (Objects/typeobject.c:740: type_call: Assertion `!PyErr_Occurred()' failed.):
-------------
import warnings
warn = warnings.warn
class A:
def __del__(self):
warn("bla")
a=A()
------------- |
|
Date |
User |
Action |
Args |
2013-10-28 17:53:48 | vstinner | set | recipients:
+ vstinner, brett.cannon, pitrou, python-dev |
2013-10-28 17:53:48 | vstinner | set | messageid: <1382982828.69.0.63624260753.issue19421@psf.upfronthosting.co.za> |
2013-10-28 17:53:48 | vstinner | link | issue19421 messages |
2013-10-28 17:53:48 | vstinner | create | |
|