I have the following class:
class MessageContext:
    def __init__(self, raw_packet, packet_header, message_header, message_index):
        self.raw_packet = raw_packet
        self.pkthdr = packet_header
        self.msghdr = message_header
        self.msgidx = message_index
        self.msg_seqno = packet_header.seqno + message_index
And a function that creates objects using the above class:
def parsers(data): 
    ... 
    context = MessageContext(None, PacketAdapter(), msghdr, 0)
    self.on_message(rawmsg, context)
I am trying to recreate context, and when i set a breakpoint just after it and print context, I get:
<exchanges.protocols.blahblah.MessageContext object at 0x7337211520>
I have left out quite a bit of code as it is very long, but if any more information is needed I am happy to provide of course.
Here is what I get when I print the arguments of MessageContext:
print(PacketAdapter())   -> <exchanges.blahblah.PacketAdapter object at 0x7f60929e1820>
Following the comments below, the PacketAdapter() class looks like this:
class PacketAdapter:
    def __init__(self):
        self.seqno = 0  
