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): def appendleft(self, a):
self.q.insert(0, a) self.q.insert(0, a)
def extend(self, a):
self.q.extend(a)
def __len__(self): def __len__(self):
return len(self.q) return len(self.q)

Wyświetl plik

@ -1,3 +1,3 @@
srctype = micropython-lib srctype = micropython-lib
type = package 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', setup(name='micropython-collections.deque',
version='0.1.1', version='0.1.2',
description='collections.deque module for MicroPython', 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.", 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', url='https://github.com/micropython/micropython/issues/405',