Found 5 bookmarks
Newest
Please don't hijack my Python root logger
Please don't hijack my Python root logger
With the recent explosion of LLM tools, I often like to kill time fiddling with different LLM client libraries and SDKs in one-off scripts. Lately, I’ve noticed that some newer tools frequently mess up the logger settings, meddling with my application logs. While it’s less common in more seasoned libraries, I guess it’s worth rehashing why hijacking the root logger isn’t a good idea when writing libraries or other forms of reusable code.
·rednafi.com·
Please don't hijack my Python root logger
Asyncio gather() In The Background - Super Fast Python
Asyncio gather() In The Background - Super Fast Python
We can run asyncio.gather() in the background by not awaiting the call to asyncio.gather(). The asyncio.gather() returns an asyncio.Future that does not have to be awaited. It is scheduled for execution in the asyncio event loop, along with all coroutines provided to the gather. Therefore, the caller is free to proceed with other activities and […]
·superfastpython.com·
Asyncio gather() In The Background - Super Fast Python
Python's Built-in Functions: A Complete Exploration – Real Python
Python's Built-in Functions: A Complete Exploration – Real Python
In this tutorial, you'll learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.
·realpython.com·
Python's Built-in Functions: A Complete Exploration – Real Python