bundles / jupyter_client latest / 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 objectsThe message to be split.
copy: boolflag determining whether the arguments are bytes or Messages
Returns
(idents, msg_list): two listsidents 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