[New-bugs-announce] [issue18642] enhancement for operator 'assert'
Al Korgun
report at bugs.python.org
Sat Aug 3 13:53:07 CEST 2013
New submission from Al Korgun:
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
----------
components: Interpreter Core
messages: 194250
nosy: WitcherGeralt
priority: normal
severity: normal
status: open
title: enhancement for operator 'assert'
type: enhancement
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18642>
_______________________________________
More information about the New-bugs-announce
mailing list