Message197749
| Author | terry.reedy |
|---|---|
| Recipients | chortos, petri.lehtinen, python-dev, terry.reedy, vstinner |
| Date | 2013-09-15.05:47:37 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1379224057.66.0.186219517077.issue12085@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The same issue arises when an exception is raised during the __init__ execution, rather than in the call argument match phase, and the exception is caught.
class C():
def __init__(self): self.a = self.b
def __del__(self): self.a
try:
C()
except AttributeError): pass
# print same message as before about self.a in __del__
What is different is that if the exception raised within __init__ is not caught, only the normal traceback is printed. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-09-15 05:47:37 | terry.reedy | set | recipients: + terry.reedy, vstinner, chortos, python-dev, petri.lehtinen |
| 2013-09-15 05:47:37 | terry.reedy | set | messageid: <1379224057.66.0.186219517077.issue12085@psf.upfronthosting.co.za> |
| 2013-09-15 05:47:37 | terry.reedy | link | issue12085 messages |
| 2013-09-15 05:47:37 | terry.reedy | create | |