Sector file // python
PYTHONDECODED.
Idioms, data & internals
Medium
8 questionsWhat is a race condition and how do locks prevent it?
DSA ยท 1.2k views ยท threading, race-condition, locks
How do you run external commands with subprocess safely?
Backend ยท 1.0k views ยท subprocess, security
When do you use threading, multiprocessing, or asyncio?
DSA ยท 742 views ยท concurrency
What is asyncio.TaskGroup and why does it replace gather?
Backend ยท 734 views ยท asyncio, taskgroup
What is a deadlock in Python?
DSA ยท 696 views ยท threading, deadlock
How do you raise and split ExceptionGroups manually?
Backend ยท 554 views ยท exceptions, exceptiongroup, asyncio
What is except* and ExceptionGroup in Python 3.11+?
Backend ยท 152 views ยท exceptions, except-star, python3.11
What is the difference between concurrency and parallelism in Python?
DSA ยท 125 views ยท concurrency, parallelism
Hard
6 questionsWhat is an async iterator and async for?
DSA ยท 956 views ยท async, async-iterator
How does TaskGroup handle cancellation and ExceptionGroup?
Backend ยท 854 views ยท asyncio, exceptiongroup, cancellation
What is TypeVarTuple and Unpack for variadic generics?
DSA ยท 584 views ยท typing, typevartuple, generics
What is the difference between a generator and a coroutine?
DSA ยท 549 views ยท generators, coroutines
How does the asyncio event loop schedule coroutines?
DSA ยท 468 views ยท asyncio, event-loop
How does async/await work in Python?
DSA ยท 143 views ยท async, asyncio
Seen a Python question that is not here? Add it and help the next candidate.
Share a question