Message201562
| Author |
vstinner |
| Recipients |
brett.cannon, pitrou, python-dev, vstinner |
| Date |
2013年10月28日.17:53:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1382982828.69.0.63624260753.issue19421@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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()
------------- |
|
History
|
|---|
| 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 |
|