kopia lustrzana https://github.com/micropython/micropython-lib
collections.deque: Add extend() method.
rodzic
fdcf1aad99
commit
b6d9dd67d5
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
srctype = micropython-lib
|
srctype = micropython-lib
|
||||||
type = package
|
type = package
|
||||||
version = 0.1.1
|
version = 0.1.2
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Ładowanie…
Reference in New Issue