2 ms·
> Much as I wish python importing was as powerful as js In what way is python importing less powerful than JS? My experience is very much the opposite (to the
by masklinn 8y ago
> Much as I wish python importing was as powerful as js
In what way is python importing less powerful than JS? My experience is very much the opposite (to the extent that JS even has an import system).
> I don't get why it is, but requests isn't.
Because pathlib was proposed (PEP 428), considered useful and self-contained.
The requests project does not want it to be included (this was discussed at length back in 2015), and it would require merging chardet and urllib3 into the stdlib first.
- scrollaway 8y agoMy post was unclear, it's fair that base JS doesn't have an import system; I was talking about ES6 imports. And yes I'm aware why requests isn't in the stdlib, but that doesn't make it "correct". And chardet should definitely be in the stdlib. I mean, ffs, `mimetypes` is in the stdlib. urllib3 is more contentious but honestly? It probably should be as well.