[issue25986] Collections.deque maxlen: added in 2.6 or 2.7?

2016-01-10 Thread Elena Oat

Elena Oat added the comment:

I checked and 2.6 python has maxlen as a parameter, but not a maxlen attribute. 
The maxlen attribute was added in 2.7.

--
nosy: +Elena.Oat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25986] Collections.deque maxlen: added in 2.6 or 2.7?

2016-01-10 Thread Ezio Melotti

Ezio Melotti added the comment:

Thanks for checking.  Closing.

--
nosy: +ezio.melotti
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25986] Collections.deque maxlen: added in 2.6 or 2.7?

2016-01-01 Thread Terry J. Reedy

New submission from Terry J. Reedy:

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?

--
messages: 257299
nosy: rhettinger, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Collections.deque maxlen: added in 2.6 or 2.7?
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25986] Collections.deque maxlen: added in 2.6 or 2.7?

2016-01-01 Thread R. David Murray

R. David Murray added the comment:

'parameter' and 'attribute' are two different things.  I presume the 
documentation is accurate, but haven't checked :)

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com