Skip to content

Is there a reason this implementation was chosen? #307

Answered by jlaine
M15terHyde asked this question in Q&A
Discussion options

You must be logged in to vote

Hah good catch, I'm guessing it's just me not knowing the standard library inside out!

message_length = 4 + int.from_bytes(buffer[1:4], byteorder="big")

Here is a PR which makes use of int.from_bytes and int.to_bytes:

#312

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jlaine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants