Originally posted by uid313
View Post
Announcement
Collapse
No announcement yet.
A Look Back At Python 3.0 After 10 Years
Collapse
X
-
- Likes 2
-
Originally posted by brrrrttttt View Post
Which as said you would only consider if you have to deploy to machines without internet, where that particular library probably isn't actually going to be needed...
- Likes 2
Leave a comment:
-
Originally posted by TheBlackCat View Post
Again, apps aren't really the issue since end-users don't see the interpreter it is running on. The things that have been ported are the libraries.
- Likes 1
Leave a comment:
-
Originally posted by uid313 View Post
I don't want to have to write my own async http request library. I just want to quickly be able to do the stuff I want. Just start firing away HTTP requests.
I expect a modern language to be able to perform asynchronous HTTP requests.
Other languages like C# on the .NET platform allows you to perform asynchronous HTTP requests out-of-the-box using HttpClient.
JavaScript lets you do async HTTP using the fetch API.
- Likes 1
Leave a comment:
-
Originally posted by brrrrttttt View PostA third-party dep in an ecosystem designed for trivial deployment with third-party deps isn't really a problem... except when your deployment target doesn't have internet access of course which I've had to deal with a few times. Of course you can also trivially write an async http request library with python 3.5ish+ stdlib anyhow.
I expect a modern language to be able to perform asynchronous HTTP requests.
Other languages like C# on the .NET platform allows you to perform asynchronous HTTP requests out-of-the-box using HttpClient.
JavaScript lets you do async HTTP using the fetch API.
- Likes 1
Leave a comment:
-
Originally posted by uid313 View Post
I am sure aiohttp is great, but it's not part of the Python Standard Library. So it introduces an third-party dependency. It's not installed by default.
I expect to be able to perform asynchronous HTTP requests with the standard library of a modern language.
- Likes 1
Leave a comment:
-
Originally posted by Vistaus View Post
BleachBit and Deluge are two apps that haven't been ported yet. Both of them, but esp. Deluge, are not outdated nor niche.
Leave a comment:
-
Originally posted by uid313 View PostI am sure aiohttp is great, but it's not part of the Python Standard Library. So it introduces an third-party dependency. It's not installed by default.
I expect to be able to perform asynchronous HTTP requests with the standard library of a modern language.
But like I said, if you really want to use standard libraries but want async, look into using multiprocessing or thread. Those are standard libraries and they allow you to make anything async.Last edited by schmidtbag; 13 February 2018, 07:48 PM.
- Likes 4
Leave a comment:
-
Originally posted by schmidtbag View PostWhat's wrong with using aiohttp? Also depending on what you're trying to do, you can always try the multiprocessing or thread libraries. Note the latter keeps your application single-threaded, but from what I recall, it makes memory management easier.
I expect to be able to perform asynchronous HTTP requests with the standard library of a modern language.
- Likes 1
Leave a comment:
-
Originally posted by schmidtbag View PostI think you're right, though I personally haven't used Twisted much. It was way too overkill for my needs, and as a result, needlessly overcomplicated. But, it does seem to serve a lot of purposes that other libraries don't seem to do.
My main interest with Python+HTTP is WebSocket. Twisted supports that too, but not in an elegant way. It's been a while since I've checked, but there was this very basic library that accomplished WebSocket with far less effort and was only a couple hundred KB.
To my knowledge, there is almost nothing worth caring about that hasn't been ported. If a program or library is still on Python 2, it is likely outdated or too niche.
- Likes 1
Leave a comment:
Leave a comment: