[New-bugs-announce] [issue23776] Don't use assert for checking arguments in pprint
Serhiy Storchaka
report at bugs.python.org
Wed Mar 25 10:37:42 CET 2015
New submission from Serhiy Storchaka:
The assert statement should be used only for checking internal logic, and not for checking user data. These assertions should be either removed or converted into explicit raising ValueError.
----------
components: Library (Lib)
messages: 239241
nosy: fdrake, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Don't use assert for checking arguments in pprint
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23776>
_______________________________________
More information about the New-bugs-announce
mailing list