MCPcopy Index your code
hub / github.com/python/cpython / as_tuple

Method as_tuple

Lib/logging/config.py:494–498  ·  view source on GitHub ↗

Utility function which converts lists to tuples.

(self, value)

Source from the content-addressed store, hash-verified

492 return result
493
494 def as_tuple(self, value):
495 """Utility function which converts lists to tuples."""
496 if isinstance(value, list):
497 value = tuple(value)
498 return value
499
500def _is_queue_like_object(obj):
501 """Check that *obj* implements the Queue API."""

Callers 3

configure_handlerMethod · 0.45
_nan_equalFunction · 0.45
test_pickleMethod · 0.45

Calls

no outgoing calls

Tested by 2

_nan_equalFunction · 0.36
test_pickleMethod · 0.36