Anthony Shaw

Results 150 comments of Anthony Shaw

If you use pyinstrument, you can see a call graph of what's taking so long ```python @app.on_event("startup") async def startup_event(): from pyinstrument import Profiler start_profile = Profiler() start_profile.start() client =...

My App is suggesting that all the time is spent copying the indexes ``` 2.853 _run asyncio/events.py:78 ├─ 2.783 init_collection beanie/odm/documents.py:575 │ [14 frames hidden] beanie, motor, asyncio, concurrent, t......

Both ideas are great. I've actually moved the suite code out to a standalone tool https://github.com/tonybaloney/rich-bench If you want to submit PRs, please do there.

Hmm, I don't know if that would be possible since in the serverless/functions model there isn't really a startup event and the function state isn't persistent. Even if there were...

Hi @simonsch0701 which app are you referring to?

@Kami or @armab do you know the answer to this?

Note: TracebackException now has the `offset` and `end_offset` attributes which expose the information needed to print the arrows. https://github.com/python/cpython/blob/3.11/Lib/traceback.py#L852-L864

This PR shows some backward incompatible changes with the way data classes work. It will now raise a `ValueError` if you set the default value of a field to a...

@squirrelsc this is a good idea. 3.11 seems to require more changes, so I will split into 2. One testing up to 3.10 and the other expanding beyond with mutable...

yes, this would apply to other appdirs