term.pid

Erlang process identifiers.

class term.pid.Pid(node_name, id, serial, creation)

Bases: BasePid

Represents Erlang-style process identifier with 3 components. Node component is always 0 for local node, otherwise it can take arbitrary integer values.

A pid is created by Erlang automatically. Pyrlang Process also generates one when it is born to register itself in the process registry. Pid uniquely identifies a running process in the cluster.

node_name_

NOTE: native encoder assumes this is a string.

is_local_to(node)

Compares self.node_name to other node.node_name :param node: Check whether pid is local to the node. :type node: pyrlang.node.Node

equals(other)

True if other is the same pid: node, id, serial and creation.