Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I don't think we need to document AssertionError in older Python versions. This 
is an implementation detail. We don't document all exceptions that can be 
raised with improper use of the API. Just don't do this.

In addition, using the assert statement for validating user input or the object 
state which depends on user actions is a bad style. We shouldn't encourage this 
by documenting it as a behavior of the stdlib. It was a bug, and it is fixed 
now.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22872>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to