MCPcopy Index your code
hub / github.com/RustPython/RustPython / ident

Method ident

Lib/multiprocessing/process.py:235–243  ·  view source on GitHub ↗

Return identifier (PID) of process or `None` if it has yet to start

(self)

Source from the content-addressed store, hash-verified

233
234 @property
235 def ident(self):
236 '''
237 Return identifier (PID) of process or `None` if it has yet to start
238 '''
239 self._check_closed()
240 if self is _current_process:
241 return os.getpid()
242 else:
243 return self._popen and self._popen.pid
244
245 pid = ident
246

Callers

nothing calls this directly

Calls 1

_check_closedMethod · 0.95

Tested by

no test coverage detected