MCPcopy Create free account
hub / github.com/ActiveState/code / append

Method append

recipes/Python/284569_caselessList/recipe-284569.py:73–76  ·  view source on GitHub ↗

Adds an item to the list and checks it's a string.

(self, item)

Source from the content-addressed store, hash-verified

71 return [entry.lower() for entry in self]
72
73 def append(self, item):
74 """Adds an item to the list and checks it's a string."""
75 if not isinstance(item, str): raise TypeError('Members of this object must be strings. You supplied \"%s\"' % type(item))
76 list.append(self, item)
77
78 def extend(self, item):
79 """Extend the list with another list. Each member of the list must be a string."""

Callers 15

__init__Method · 0.95
__iadd__Method · 0.95
verifyMethod · 0.45
extendMethod · 0.45
recipe-284569.pyFile · 0.45
handle_starttagMethod · 0.45
SubthreadProcFunction · 0.45
recipe-284631.pyFile · 0.45
populateDirectoriesFunction · 0.45
__closestVersion__Function · 0.45
__init__Function · 0.45
listparseFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_completion_statsFunction · 0.36