CLI tools hidden in the Python standard library
CLI tools hidden in the Python standard library
til.simonwillison.net CLI tools hidden in the Python standard library
Seth Michael Larson pointed out that the Python gzip module can be used as a CLI tool like this:
1
comments
It's worth noting that the
http.server
module is based onsocketserver.BaseServer.serve_forever
, which is a atrocious.It uses a busy loop with a delay, so it both burns CPU and is unresponsive.
(The fact that Python has had broken signal handling since 3.5 also hurts - EINTR should never be ignored from blocking calls)
1 0 Reply