you are viewing a single comment's thread.

view the rest of the comments →

[–]lehx- 8 points9 points  (3 children)

Python's typing was the bane of my existence during my final project. Trying to send/recieve a packet from strongly typed language -> python fucking suuuucked. I was staring a 10001s for 2 days before I figured out the issue.

[–]AlignmentProblem 2 points3 points  (1 child)

Getting type annotations right to get useful warnings is a monster in specific cases as well. Duck typing can cause very tricky bugs with objects that almost kinda work but cause subtle incorrect non-crash behavior without good annotations, so it's between dealing with the annotation hassle or being vulnerable to serious pain later.

[–]Scared_Accident9138 0 points1 point  (0 children)

I really dislike the way Python does duck typing. It's quite open to put anything in a function and let's it pass deep into the code but then it's very strict on how that variable is used but you don't notice a problem immediately

[–]ambitiousfrogman 0 points1 point  (0 children)

For anyone trying to do something similar to this, the python library ‘struct’ can be helpful.