1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

adding and removing a property

This commit is contained in:
Joel Bender
2017-09-26 00:20:17 -04:00
parent 5cd17080c0
commit 6be49d9b15
4 changed files with 74 additions and 0 deletions

View File

@@ -600,6 +600,11 @@ def ArrayOf(klass):
# not found
raise ValueError("%r not in array" % (value,))
def remove(self, item):
# find the index of the item and delete it
indx = self.index(item)
self.__delitem__(indx)
def encode(self, taglist):
if _debug: ArrayOf._debug("(%r)encode %r", self.__class__.__name__, taglist)