MCPcopy Create free account
hub / github.com/bpython/bpython / is_eval_safe_name

Function is_eval_safe_name

bpython/inspection.py:305–309  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

303
304
305def is_eval_safe_name(string: str) -> bool:
306 return all(
307 part.isidentifier() and not keyword.iskeyword(part)
308 for part in string.split(".")
309 )
310
311
312def _get_argspec_from_signature(f: Callable) -> ArgSpec:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected