MCPcopy Create free account
hub / github.com/apache/qpid-proton / _check_list

Method _check_list

python/proton/_data.py:518–524  ·  view source on GitHub ↗

Check all items in list are :class:`symbol`s (or are converted to symbols).

(self, t: Iterable[Any])

Source from the content-addressed store, hash-verified

516 self.extend(t)
517
518 def _check_list(self, t: Iterable[Any]) -> List[Any]:
519 """ Check all items in list are :class:`symbol`s (or are converted to symbols). """
520 item = []
521 if t:
522 for v in t:
523 item.append(_check_is_symbol(v, self.raise_on_error))
524 return item
525
526 def to_array(self):
527 return Array(UNDESCRIBED, PN_SYMBOL, *self)

Callers 3

extendMethod · 0.95
__add__Method · 0.95
__iadd__Method · 0.95

Calls 2

_check_is_symbolFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected