This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
> 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

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):

Date User Action Args
2013-10-28 17:53:48vstinnersetrecipients: + vstinner, brett.cannon, pitrou, python-dev
2013-10-28 17:53:48vstinnersetmessageid: <>
2013-10-28 17:53:48vstinnerlinkissue19421 messages
2013-10-28 17:53:48vstinnercreate