[Python-checkins] r58326 - in python/trunk: Doc/library/collections.rst Lib/collections.py Lib/test/test_collections.py Lib/test/test_deque.py Misc/NEWS Modules/_collectionsmodule.c

Jim Jewett jimjjewett at gmail.com
Fri Oct 5 19:33:46 CEST 2007


On 10/4/07, raymond.hettinger <python-checkins at python.org> wrote:
> Author: raymond.hettinger
> Date: Fri Oct  5 04:47:07 2007
> New Revision: 58326

> Add maxlen support to deque() and fixup docs.

> +   If *maxlen* is not specified or is *-1*, deques may grow to an
> +   arbitrary length.

Why -1, rather than None, or even 0?  (Is there a sane use case for a
/dev/null version of deque?)

-jJ


More information about the Python-checkins mailing list