Author WitcherGeralt
Recipients WitcherGeralt
Date 2013-08-03.11:53:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375530787.73.0.318484624842.issue18642@psf.upfronthosting.co.za>
In-reply-to
Content
It would be pretty good, if 'assert' could raise specified exception, like that:

>>> data = None
>>> assert isinstance(data, basestring), TypeError("'data' must be a string")

<s>AssertionError</s>TypeError: 'data' must be a string
History
Date User Action Args
2013-08-03 11:53:07WitcherGeraltsetrecipients: + WitcherGeralt
2013-08-03 11:53:07WitcherGeraltsetmessageid: <1375530787.73.0.318484624842.issue18642@psf.upfronthosting.co.za>
2013-08-03 11:53:07WitcherGeraltlinkissue18642 messages
2013-08-03 11:53:07WitcherGeraltcreate