4 ms·
I like this kind of tutorial as well but I have a hard time telling who this particular one is aimed at. It's definitely not any kind of beginner. The socket A
by pvg 9y ago
I like this kind of tutorial as well but I have a hard time telling who this particular one is aimed at. It's definitely not any kind of beginner.
The socket API is nontrivial and is hardly explained at all. A lot of implementation magic is just coded right in without a word of explanation. The shiniest Python wizardry is used throughout without much of a benefit to clarity - you've got a generator, f-literals, type annotations, typed name tuple syntax, etc. Even if you can read and like type annotations as a documentation aid, the code as written says weird things like 'an http request is a a named tuple and depends on sockets'.
- sotojuan 9y agoI'd guess it's written for someone comfortable with Python or programming in general (so they understand the syntax quickly) but has mostly worked with web frameworks and libraries.
- voltagex_ 9y agoI thought I was comfortable with Python but I've never seen `-> typing.Generator[bytes, None, bytes]` nor that arrow syntax before - guess I have some catching up to do.