Message131694
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. |
|
Date |
User |
Action |
Args |
2011-03-21 22:31:40 | Trundle | set | recipients:
+ Trundle, pitrou, michael.foord, santoso.wijaya |
2011-03-21 22:31:38 | Trundle | link | issue11627 messages |
2011-03-21 22:31:38 | Trundle | create | |
|