/explore
|
You are here |
florimond.dev | ||
| | | | |
0x00.cl
Tomas Gutierrez L. personal website (0x00) |
|
| | | | | ||
| | | | |
bruceeckel.com
[AI summary] Bruce Eckel demonstrates six Python tricks for writing cleaner, more efficient code, including converting scripts to Windows executables, context managers, argument parsing, and configuration handling. |
|
| | | | | ||
| | | | |
dusty.phillips.codes
I really appreciate Python's pathlib module for managing filesystem stuff. While I don't love the argparse module for command line parsing, I don't think it's worse than other available options. I usually choose it for my CLI scripts, since nothing else is good enough to overcome the inertia of using a third party library. Not many people seem to be aware that the two can very easily be combined such that argparse will return Path objects instead of strings that need to be adapted after you query them: |
|
| | | | | ||
| | | | |
calvinlc.com
[AI summary] The author writes a humorous post about a bug in their computer vision script for compressing images by removing low-frequency noise, which ironically generates a funny-looking historical image of Joseph Fourier's cat. |
|
| | | |||