Shelf · Python
Python - Language & Backend
The language the way a backend engineer uses it, from the data model to FastAPI, with the ETL-script habits fixed.
Difficulty
Priority
- Names refer to objectsEasyP1Know cold
- Equality is not identityEasyP1Know cold
- Trace mutation through aliasesMediumP1Know cold
- Design safe dictionary keysMediumP2Know cold
- Separate empty, missing and internedEasyP2Know cold
- Choose shallow or deep copyMediumP2Know cold
Difficulty
Priority
- Bind and forward function argumentsEasyP1Know cold
- Replace shared mutable defaultsEasyP1Know cold
- Resolve names with LEGBMediumP1Know cold
- Capture state in closures deliberatelyMediumP2Know cold
- Pass behavior and bind partialsMediumP2Know cold
- Recognize recursion boundariesEasyP4Talk about it
Difficulty
Priority
- Separate class and instance stateEasyP1Know cold
- Give objects coherent protocolsMediumP2Know cold
- Expose properties and constructorsMediumP2Know cold
- Prefer composition where substitution failsMediumP2Talk about it
- Trace MRO and define ABC contractsHardP3Talk about it
- Choose dataclass and slots deliberatelyMediumP3Talk about it
Difficulty
Priority
- Iterator protocol, exhaustion and pull modelMediumP2Know cold
- Suspend computation with yieldMediumP2Know cold
- Choose lazy generator expressionsEasyP2Know cold
- Compose streams with itertoolsMediumP3Talk about it
- Stream a 20 GB file within a memory budgetMediumP2Know cold
- Delegate generators and exchange valuesHardP4Talk about it
Difficulty
Priority
- Write decorators that preserve function metadataMediumP2Know cold
- Build parameterised decorator factoriesMediumP2Know cold
- Apply retry, timing and caching wrappersHardP3Talk about it
- Context managers and deterministic cleanupMediumP2Know cold
- Express cleanup with contextlibMediumP2Know cold
- Preserve errors while resources closeHardP2Know cold
Difficulty
Priority
- Catch the intended exception branchMediumP1Know cold
- Represent domain failures explicitlyMediumP2Know cold
- Trace try, else and finally pathsMediumP1Know cold
- Choose EAFP or LBYL at the boundaryMediumP2Know cold
- Inspect failures in exception groupsHardP3Talk about it
- Log, propagate or recover deliberatelyMediumP2Know cold
Difficulty
Priority
- Separate hints from runtime validationEasyP2Know cold
- Keep relationships with genericsMediumP3Talk about it
- Model capabilities and missing valuesMediumP2Know cold
- Pydantic v2 boundary validation and schemasMediumP3Know cold
- Use match and walrus without hiding flowMediumP3Talk about it
- Read the 3.11 to 3.14 migration mapMediumP5Know it exists
Difficulty
Priority
- Runtime concurrency: threads, processes, async and GILHardP3Talk about it
- Follow the event loop through awaitMediumP3Know cold
- Choose gather or a task groupMediumP3Know cold
- Structured async cancellation and TaskGroup ownershipHardP3Talk about it
- Isolate blocking work with executorsHardP3Know cold
- Explain when async is the wrong answerMediumP3Talk about it
Difficulty
Priority
- Explain object retention and collectionMediumP3Talk about it
- Locate hot paths with cProfileMediumP2Know cold
- Design a useful timeit experimentMediumP3Talk about it
- Trace allocation growth with tracemallocMediumP3Talk about it
- Fix algorithms before micro-optimisingMediumP2Know cold
- Batch work against latency and memory budgetsMediumP2Know cold
Difficulty
Priority
- Python package reproducibility: pyproject, environments and resolutionMediumP2Know cold
- Choose venv, uv or poetry for a projectEasyP2Know cold
- Distinguish modules and packagesEasyP1Know cold
- Untangle imports and circular dependenciesMediumP2Know cold
- Give a package an explicit entry pointMediumP3Know cold
- Rebuild the environment and test the artifactMediumP3Talk about it
Difficulty
Priority
- Python test mechanics: pytest fixtures, assertions and lifecycleMediumP2Know cold
- Parametrize meaningful boundary casesEasyP2Know cold
- Mock the dependency where it is looked upMediumP2Know cold
- Control time and interpret coverageMediumP3Know cold
- Test an ETL job through failure and replayHardP2Know cold
- Introduce property-based testingMediumP4Talk about it
Difficulty
Priority
- Build routes around request and response contractsMediumP2Know cold
- Inject dependencies and wire authorizationHardP2Know cold
- Match async endpoints to actual I/OMediumP3Know cold
- Place middleware, errors and background workHardP3Talk about it
- ORM boundary: SQLAlchemy 2.x sessions and AlembicHardP3Talk about it
- Structure and paginate a maintainable APIMediumP2Know cold
Difficulty
Priority
- Choose collections and dict/set idiomsEasyP1Know cold
- Work with paths and explicit JSON dataEasyP2Know cold
- Make timezones part of the data contractMediumP2Know cold
- Review subprocess and regex boundariesMediumP3Talk about it
- Configure logging for useful diagnosticsMediumP2Know cold
- Run the is-this-Pythonic review checklistMediumP5Know it exists
No cards match these filters.