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 Trundle
Recipients Trundle, michael.foord, pitrou, santoso.wijaya
Date 2011-03-21.22:31:38
SpamBayes Score 6.589116e-09
Marked as misclassified No
Message-id <AANLkTi=gn1txYNGFieT+UuNLvG9yi4xfii3OLQoeo+rS@mail.gmail.com>
In-reply-to <1300746439.08.0.305579745808.issue11627@psf.upfronthosting.co.za>
Content
On Mon, Mar 21, 2011 at 10:27 PM, Santoso Wijaya <report@bugs.python.org> wrote:
>
> Santoso Wijaya <santoso.wijaya@gmail.com> added the comment:
>
> Also, why is the print() in __new__ executed twice?

Because `PyErr_NormalizeException()` is called twice: First time when
the exceptions is raised, and then a second time when the exception is
caught. Because the previous call didn't instantiate an instance of a
exception, the second call will (try to) create a new exception
instance.
History
Date User Action Args
2011-03-21 22:31:40Trundlesetrecipients: + Trundle, pitrou, michael.foord, santoso.wijaya
2011-03-21 22:31:38Trundlelinkissue11627 messages
2011-03-21 22:31:38Trundlecreate