diff options
author | Raymond Hettinger <python@rcn.com> | 2007-10-10 00:26:46 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-10-10 00:26:46 (GMT) |
commit | 68995867d558609a8e376be24b6c3347eb643976 (patch) | |
tree | a1cbe451961652444e193c86269f12ea7cab0201 /Doc | |
parent | 77ae87c11e52b681592e5c6147d7a1fb88b40e25 (diff) | |
download | cpython-68995867d558609a8e376be24b6c3347eb643976.zip cpython-68995867d558609a8e376be24b6c3347eb643976.tar.gz cpython-68995867d558609a8e376be24b6c3347eb643976.tar.bz2 |
Accept Jim Jewett's api suggestion to use None instead of -1 to indicate unbounded deques.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index ca8a096..4e93b15 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -51,7 +51,7 @@ ordered dictionaries. .. versionadded:: 2.4 - If *maxlen* is not specified or is *-1*, deques may grow to an + If *maxlen* is not specified or is *None*, deques may grow to an arbitrary length. Otherwise, the deque is bounded to the specified maximum length. Once a bounded length deque is full, when new items are added, a corresponding number of items are discarded from the opposite end. Bounded |