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 serhiy.storchaka
Recipients Martin Teichmann, Martin.Teichmann, Tim.Graham, eric.snow, ncoghlan, python-dev, serhiy.storchaka
Date 2016-10-18.11:19:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476789576.0.0.640995841121.issue28214@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch uses C API added in issue28410. It preserves the traceback of original exception:

Traceback (most recent call last):
  File "issue28214.py", line 3, in __set_name__
    1/0
ZeroDivisionError: division by zero

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "issue28214.py", line 5, in <module>
    class TheoreticallyCouldWork:
RuntimeError: Error calling __set_name__ on 'FaultyImplementation' instance 'attr' in 'TheoreticallyCouldWork'
History
Date User Action Args
2016-10-18 11:19:36serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, python-dev, eric.snow, Martin.Teichmann, Tim.Graham, Martin Teichmann
2016-10-18 11:19:36serhiy.storchakasetmessageid: <1476789576.0.0.640995841121.issue28214@psf.upfronthosting.co.za>
2016-10-18 11:19:35serhiy.storchakalinkissue28214 messages
2016-10-18 11:19:35serhiy.storchakacreate