-
```python
import warnings
import asyncio
async def spam():
with warnings.catch_warnings(record=True) as ws:
await asyncio.sleep(0.1)
w = Warning("12345")
warnings.warn(w)
assert…
-
# Feature or enhancement
### Proposal:
`contextvars.Context` is documented as implementing the collections.abc.Mapping interface. I believe we should register it to the abc, so an `isinstance` check…
-
Facing this issue in PyAlgomate.py in flet while Runner.py is running perfectly fine
```
[ERROR]|[2024-04-25 08:18:39,177]|[PID:62411::TID:8656894656]|[asyncio::base_events::default_exception_hand…
-
**Description**
Packages contextvars_2.4-1 in 3003/3004 have same version-string+arch but they are different. Problem with package management (we are using aptly to manage our repos - https://www.apt…
-
**Is your feature request related to a problem? Please describe.**
Our application uses [contextvars](https://docs.python.org/3/library/contextvars.html) to include additional attributes in our log r…
-
Hello,
I'm trying to understand how to read contextualized values within the do_something() function when using the logger.contextualize() method. Here is an example of my code:
```
from loguru…
tstrg updated
3 months ago
-
Hi, I am trying to use the code following the [doc](https://epsic-dls.github.io/particlespy/getting_started.html) and the [notebook](https://github.com/ePSIC-DLS/particlespy_examples/blob/main/Basic%2…
-
I tried find examples but attempts were unsuccessful
How I understand:
Singleton - One object of all container lifetime
ThreadSafeSingleton - Same as Singleton and thread safe
ContextLocalSin…
-
Context variables are now the recommended way to manage thread/context-local state:
> Context managers that have state should use Context Variables instead of threading.local() to prevent their sta…
-
With django being used in more async contexts should the threading local `_thread_locals` swap to using `asgiref.local.Local`?