[issue19768] Not so correct error message when giving incorrect type to maxlen in deque
Claudiu Popa
report at bugs.python.org
Sat Jun 14 22:12:46 CEST 2014
Claudiu Popa added the comment:
I believe that returning a TypeError instead of a ValueError is better in this situation. Technically, passing 'a' as maxlen makes that value inappropiate, thus the use of TypeError. It will also be backward compatible. Also, your patch needs test updates.
----------
nosy: +Claudiu.Popa
stage: -> patch review
versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19768>
_______________________________________
More information about the Python-bugs-list
mailing list