New submission from Eric <esatterwhite@...>:
the data structure deque from the collections module is documented as allowing a maxlen argument.
code:
from collections import deque
d = deque([], 5)
results in:
deque() takes at most 1 arguments (2 given)
deque([], maxlen=5)
deque() does not take keyword arguments.
Either way, there is no way to specify a maximum length on the deque object
----------
components: Core, Library
messages: 6021
nosy: esatterwhite
severity: normal
status: open
title: deque only does not accept maxlen
type: behaviour
versions: 2.5.2b1
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1650>
_______________________________________
|