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 ยท 739 views ยท concurrency
What is asyncio.TaskGroup and why does it replace gather?
Backend ยท 732 views ยท asyncio, taskgroup
What is a deadlock in Python?
DSA ยท 694 views ยท threading, deadlock
How do you raise and split ExceptionGroups manually?
Backend ยท 551 views ยท exceptions, exceptiongroup, asyncio
What is except* and ExceptionGroup in Python 3.11+?
Backend ยท 151 views ยท exceptions, except-star, python3.11
What is the difference between concurrency and parallelism in Python?
DSA ยท 123 views ยท concurrency, parallelism
Hard
6 questionsWhat is an async iterator and async for?
DSA ยท 954 views ยท async, async-iterator
How does TaskGroup handle cancellation and ExceptionGroup?
Backend ยท 852 views ยท asyncio, exceptiongroup, cancellation
What is TypeVarTuple and Unpack for variadic generics?
DSA ยท 579 views ยท typing, typevartuple, generics
What is the difference between a generator and a coroutine?
DSA ยท 546 views ยท generators, coroutines
How does the asyncio event loop schedule coroutines?
DSA ยท 465 views ยท asyncio, event-loop
How does async/await work in Python?
DSA ยท 141 views ยท async, asyncio
Seen a Python question that is not here? Add it and help the next candidate.
Share a question