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

Function exit_with_permission_help_text

Lib/asyncio/tools.py:225–236  ·  view source on GitHub ↗

Prints a message pointing to platform-specific permission help text and exits the program. This function is called when a PermissionError is encountered while trying to attach to a process.

()

Source from the content-addressed store, hash-verified

223
224
225def exit_with_permission_help_text():
226 """
227 Prints a message pointing to platform-specific permission help text and exits the program.
228 This function is called when a PermissionError is encountered while trying
229 to attach to a process.
230 """
231 print(
232 "Error: The specified process cannot be attached to due to insufficient permissions.\n"
233 "See the Python documentation for details on required privileges and troubleshooting:\n"
234 "https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements\n"
235 )
236 sys.exit(1)
237
238
239def _get_awaited_by_tasks(pid: int) -> list:

Callers 1

_get_awaited_by_tasksFunction · 0.70

Calls 1

exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…