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 carljm, ncoghlan, serhiy.storchaka
Date 2018-05-19.14:54:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526741654.37.0.682650639539.issue33576@psf.upfronthosting.co.za>
In-reply-to
Content
Unconditional replacing an exception is bad, because it can hide important exceptions like KeybordInterrupt or MemoryError.

What if raise a new exception only if TypeError was raised? This will cover the case of a __set_name__() method with wrong signature.
History
Date User Action Args
2018-05-19 14:54:14serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, carljm
2018-05-19 14:54:14serhiy.storchakasetmessageid: <1526741654.37.0.682650639539.issue33576@psf.upfronthosting.co.za>
2018-05-19 14:54:14serhiy.storchakalinkissue33576 messages
2018-05-19 14:54:14serhiy.storchakacreate