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

Function is_python_process

Lib/profiling/sampling/_child_monitor.py:42–52  ·  view source on GitHub ↗

Check if a process is a Python process. Args: pid: Process ID to check Returns: bool: True if the process appears to be a Python process, False otherwise

(pid)

Source from the content-addressed store, hash-verified

40
41
42def is_python_process(pid):
43 """
44 Check if a process is a Python process.
45
46 Args:
47 pid: Process ID to check
48
49 Returns:
50 bool: True if the process appears to be a Python process, False otherwise
51 """
52 return _remote_debugging.is_python_process(pid)
53
54
55class ChildProcessMonitor:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…