Skip to content

Commit b6d9dd6

Browse files
committed
collections.deque: Add extend() method.
1 parent fdcf1aa commit b6d9dd6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

collections.deque/collections/deque.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def append(self, a):
2121
def appendleft(self, a):
2222
self.q.insert(0, a)
2323

24+
def extend(self, a):
25+
self.q.extend(a)
26+
2427
def __len__(self):
2528
return len(self.q)
2629

collections.deque/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
srctype = micropython-lib
22
type = package
3-
version = 0.1.1
3+
version = 0.1.2

collections.deque/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
setup(name='micropython-collections.deque',
9-
version='0.1.1',
9+
version='0.1.2',
1010
description='collections.deque module for MicroPython',
1111
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
1212
url='https://github.com/micropython/micropython/issues/405',

0 commit comments

Comments
 (0)