by divbzero · 4y ago · 0 comments
colorsys
fileinput
getopt
optparse
wave
https://peps.python.org/pep-0594/#modules-to-keepSeems like the maintainers have been generous in deciding which batteries are not dead yet.
colorsys: a small handful of conversion functions you need every now and then
fileinput: quick and dirty boilerplate for when you want to accept input from files or stdin
getopt: a fine, well understood command line parser
optparse: it's a simpler more broken argparse that will eventually tell you "i'm sorry dave..." and people should stop using it
wave: great way to create or process pcm audio data without a whole framework
[1] - https://github.com/python/cpython/blob/main/Lib/argparse.py
There has been an open bug for this for many years.
it's also valid to suggest that a plate of spaghetti is better than a cauldron full (thus favoring optparse).