MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / iter_chars

Function iter_chars

_pydevd_bundle/pydevd_constants.py:542–548  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

540
541
542def iter_chars(b):
543 # In Python 2, we can iterate bytes or str with individual characters, but Python 3 onwards
544 # changed that behavior so that when iterating bytes we actually get ints!
545 if isinstance(b, bytes):
546 # i.e.: do something as struct.unpack('3c', b)
547 return iter(struct.unpack(str(len(b)) + "c", b))
548 return iter(b)
549
550
551if IS_JYTHON or PYDEVD_USE_SYS_MONITORING:

Callers 1

_expression_to_evaluateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected