Comment

Comment by eterevsky

I think Python needs much fewer packages in its standard library:

- array: everyone uses numpy for the same purposes

- bisect: very niche feature, not a good fit for standard library

- glob: should probably be part of os

- graphlib: why is it part of the standard library? even if you need to work with graphs, chances are you have different requirements or data format

- shlex: again, not really necessary in standard library (unless it's used in shutil, I don't know)

- statistics: should be handled by scipy

And that's just the modules mentioned in this article. There are tons of other modules that are outdated, unused, don't fit into standard library: getopt, curses, urllib (everyone uses requests), xml*, html, tkinter.

What Python should be doing is deprecating those modules and/or moving them outside of the standard library. Not adding more of them.

parent eterevsky 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton