Issue 25986: Collections.deque maxlen: added in 2.6 or 2.7? (original) (raw)
Issue25986
Created on 2016-01-01 20:48 by terry.reedy, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (4) | ||
---|---|---|
msg257299 - (view) | Author: Terry J. Reedy (terry.reedy) * ![]() |
Date: 2016-01-01 20:48 |
https://docs.python.org/2.6/library/collections.html#collections.deque has this line "Changed in version 2.6: Added maxlen parameter." https://docs.python.org/2.7/library/collections.html#collections.deque kept the sentence above and added this entry after the list of methods. Deque objects also provide one read-only attribute: maxlen Maximum size of a deque or None if unbounded. New in version 2.7. Which is it? | ||
msg257300 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2016-01-01 20:51 |
'parameter' and 'attribute' are two different things. I presume the documentation is accurate, but haven't checked :) | ||
msg257900 - (view) | Author: Elena Oat (Elena.Oat) * | Date: 2016-01-10 08:48 |
I checked and 2.6 python has maxlen as a parameter, but not a maxlen attribute. The maxlen attribute was added in 2.7. | ||
msg257901 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2016-01-10 08:51 |
Thanks for checking. Closing. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:25 | admin | set | github: 70174 |
2016-01-10 08:51:26 | ezio.melotti | set | status: open -> closednosy: + ezio.melottimessages: + resolution: not a bugstage: needs patch -> resolved |
2016-01-10 08:48:49 | Elena.Oat | set | nosy: + Elena.Oatmessages: + |
2016-01-01 20:51:34 | r.david.murray | set | nosy: + r.david.murraymessages: + |
2016-01-01 20:48:20 | terry.reedy | create |