3 ms·
The Python stdlib does not get enough credit. People complain about things like how its http client is dated and slow, but it’s pretty amazing that it’s just ri
by sevensor 10mo ago
The Python stdlib does not get enough credit. People complain about things like how its http client is dated and slow, but it’s pretty amazing that it’s just right there if you need it, no external dependencies needed. And it’s sitting right next to difflib, graphlib, pathlib, struct, glob, tkinter, and dozens of others. Sure, every one of these is limited individually, but those limitations are stable and well understood!
- BoppreH 10mo agoAbsolutely agree, but it's funny that you mentioned graphlib. It has a single algorithm (topological sort)! The sqlite, tkinter, and shelve modules are the ones I find most impressive.
- zelphirkalt 10mo agoCurrently developing a tkinter app, and loving, that I don't have to install an additional GUI framework. This will be much easier to package than with GTK or QT or Pyside or something. I am sure people have figured out all of that, but my project has so minimal dependencies, and yet offers a full GUI.
- capyba 10mo agotkinter is the best kept secret in the Python std lib. Pair it with numpy and matplotlib (two external dependencies that personally I consider part of Python itself), and you’ve got 80% of an interactive scientific simulation environment.
- zelphirkalt 10mo agoIn fact, I am planning to use matplotlib soon, to visualize progress in learning, since my app is a language learning app.
- bigstrat2003 10mo agoI strongly agree! Sure, the stuff in the Python stdlib might not be the best available - but it's always there. I've been in environments where I couldn't install requests but urllib2 meant that I could still get the job done. I think that every language should have a batteries-included stdlib.