STINNER Victor added the comment:

Serhiy Storchaka: "I opened this issue because this optimization already was 
applied to deque (issue23553)"

Ah, change 1e89094998b2 written by Raymond Hettinger last year, Raymond who 
wrote (msg278397): "Don't change the code in the collections module.  While 
semantically valid, the change obfuscates the code." :-)

To stay consistent, I suggest to revert the useless micro-optimization 
1e89094998b2. Python uses Py_ssize_t instead of size_t to support "i >= 0" 
checks", it's a deliberate choice to catch bugs.

----------

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

Reply via email to