1. urllib3 in 2024

    Overall, 2024 was a slower year for urllib3 in terms of development and funding compared to previous years. The year's highlights were increased financial support from multiple sources, developments for HTTP/2 and WASM support, and successful sponsored work from LaunchDarkly.

    Past updates:

    read more

  2. Using asynchronous for loops in Python

    asyncio has brought support for asynchronous I/O with an event loop to Python 3. Since Python 3.5, we can use the async and await keywords:

    async def get(self):
        await self.wait_for_token()
        return self.client.get()
    

    But Python 3.5 also brought support for asynchronous context managers (async …

    read more

  3. You don't need promises in Python: just use async/await!

    Promises/A+ logo - https://alexn.org/assets/img/2017/then.png

    If you're coming from a JavaScript background, it's tempting to try to use the promises that you know and love with Python. That's what I tried to initially too, and I was surprised to see that promises were very rarely used in Python. It turns out that promises are not …

    read more