mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Rewrap comment.
This commit is contained in:
parent
bc00341105
commit
a4b13d0020
1 changed files with 4 additions and 4 deletions
|
@ -272,10 +272,10 @@ PyDoc_STRVAR(popleft_doc, "Remove and return the leftmost element.");
|
|||
/* The deque's size limit is d.maxlen. The limit can be zero or positive.
|
||||
* If there is no limit, then d.maxlen == -1.
|
||||
*
|
||||
* After an item is added to a deque, we check to see if the size has grown past
|
||||
* the limit. If it has, we get the size back down to the limit by popping an
|
||||
* item off of the opposite end. The methods that can trigger this are append(),
|
||||
* appendleft(), extend(), and extendleft().
|
||||
* After an item is added to a deque, we check to see if the size has
|
||||
* grown past the limit. If it has, we get the size back down to the limit
|
||||
* by popping an item off of the opposite end. The methods that can
|
||||
* trigger this are append(), appendleft(), extend(), and extendleft().
|
||||
*
|
||||
* The macro to check whether a deque needs to be trimmed uses a single
|
||||
* unsigned test that returns true whenever 0 <= maxlen < Py_SIZE(deque).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue