Message 190780 - Python tracker

Message190780

Author brett.cannon
Recipients brett.cannon
Date 2013-06-07.20:55:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370638526.17.0.473449662068.issue18165@psf.upfronthosting.co.za>
In-reply-to
Content
TypeError could grow an 'unexpected_type' attribute to store the type of the argument that was used to trigger the exception. Since types are expected to not be deleted there is no GC worry.

Having an 'expected' attribute makes no sense in the face of a union of types, etc. (unless the assumption of a frozenset is made for the attribute). Plus exceptions typically do not contain info on what would have been acceptable (although in this instance it may make sense).
History
Date User Action Args
2013-06-07 20:55:26brett.cannonsetrecipients: + brett.cannon
2013-06-07 20:55:26brett.cannonsetmessageid: <1370638526.17.0.473449662068.issue18165@psf.upfronthosting.co.za>
2013-06-07 20:55:26brett.cannonlinkissue18165 messages
2013-06-07 20:55:25brett.cannoncreate