{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / session / Session / feed_identities

function

jupyter_client.session:Session.feed_identities

source: /jupyter_client/session.py:960

Signature

def feed_identities(self, msg_list: list[bytes] | list[zmq.Message], copy: bool = True) → tuple[list[bytes], list[bytes] | list[zmq.Message]]

Summary

Split the identities from the rest of the message.

Extended Summary

Feed until DELIM is reached, then return the prefix as idents and remainder as msg_list. This is easily broken by setting an IDENT to DELIM, but that would be silly.

Parameters

msg_list : a list of Message or bytes objects

The message to be split.

copy : bool

flag determining whether the arguments are bytes or Messages

Returns

(idents, msg_list) : two lists

idents will always be a list of bytes, each of which is a ZMQ identity. msg_list will be a list of bytes or zmq.Messages of the form [HMAC,p_header,p_parent,p_content,buffer1,buffer2,...] and should be unpackable/unserializable via self.deserialize at this point.

Aliases

  • jupyter_client.channels.Session.feed_identities