I am rewriting the following Perl code in Python:
my $data = Data::AMF::Packet->new->deserialize($packet);
$data->messages->[0]->{value}->[1] = $data->messages->[1]->{value}->[1] = $mid;
$data = $data->serialize;
I would like to know how to write this in Python? I am new to PyAMF and the examples I googled wont help.
Thanks a lot!
Something along the lines of: