collections.deque: Add extend() method.

pull/57/head
Paul Sokolovsky 2015-12-03 00:34:55 +02:00
rodzic fdcf1aad99
commit b6d9dd67d5
3 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -21,6 +21,9 @@ class deque:
def appendleft(self, a):
self.q.insert(0, a)
def extend(self, a):
self.q.extend(a)
def __len__(self):
return len(self.q)

Wyświetl plik

@ -1,3 +1,3 @@
srctype = micropython-lib
type = package
version = 0.1.1
version = 0.1.2

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-collections.deque',
version='0.1.1',
version='0.1.2',
description='collections.deque module for MicroPython',
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.",
url='https://github.com/micropython/micropython/issues/405',