Functions
_gil_enabled
0
bool
▼
Return whether the GIL is enabled in this interpreter.
Returns True on standar…
_gil_enabled
0
bool
▼
def _gil_enabled() -> bool
Return whether the GIL is enabled in this interpreter.
Returns True on standard CPython, False on free-threaded 3.14t+. Falls back to True if the API isn't available (pre-3.13 builds).
Returns
bool
build_introspect_response
3
tuple[int, list[tuple[by…
▼
Build the ``/_pounce/info`` JSON response.
build_introspect_response
3
tuple[int, list[tuple[by…
▼
def build_introspect_response(*, config: ServerConfig, worker_id: int, active_connections: int) -> tuple[int, list[tuple[bytes, bytes]], bytes]
Parameters
| Name | Type | Description |
|---|---|---|
config |
ServerConfig |
|
worker_id |
int |
|
active_connections |
int |
Returns
tuple[int, list[tuple[bytes, bytes]], bytes]