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):
|
||||
self.q.insert(0, a)
|
||||
|
||||
def extend(self, a):
|
||||
self.q.extend(a)
|
||||
|
||||
def __len__(self):
|
||||
return len(self.q)
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
srctype = micropython-lib
|
||||
type = package
|
||||
version = 0.1.1
|
||||
version = 0.1.2
|
||||
|
|
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue