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

Method ident

Lib/multiprocessing/process.py:242–250  ·  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

240
241 @property
242 def ident(self):
243 '''
244 Return identifier (PID) of process or `None` if it has yet to start
245 '''
246 self._check_closed()
247 if self is _current_process:
248 return os.getpid()
249 else:
250 return self._popen and self._popen.pid
251
252 pid = ident
253

Callers

nothing calls this directly

Calls 1

_check_closedMethod · 0.95

Tested by

no test coverage detected