Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
4 questionsWhy use virtual environments?
DSA ยท 1.1k views ยท venv, pip
What does if __name__ == "__main__" do?
Backend ยท 862 views ยท modules, basics
What is uv and why is it replacing pip/poetry in 2025-26?
Backend ยท 716 views ยท uv, packaging, python3.11
What is the difference between __repr__ and __str__?
DSA ยท 456 views ยท dunder, repr, str
Medium
18 questionsWhat is the difference between an iterable and an iterator?
DSA ยท 1.1k views ยท iterators
How does Pydantic v2 validation work (BaseModel, field_validator, mode)?
Backend ยท 1.1k views ยท pydantic, validation, python3.11
How does Polars LazyFrame query optimization work?
DSA ยท 1.1k views ยท polars, lazy, performance
What is the LEGB rule for scope resolution?
DSA ยท 890 views ยท scope, legb
What is the difference between __new__ and __init__?
DSA ยท 879 views ยท new, init
What is the difference between classmethod and staticmethod?
DSA ยท 793 views ยท classmethod, staticmethod
What are bound and unbound methods in Python?
DSA ยท 710 views ยท methods, binding
What is a deadlock in Python?
DSA ยท 696 views ยท threading, deadlock
Hard
7 questionsWhat is a weak reference in Python?
DSA ยท 731 views ยท weakref, memory
What is the Method Resolution Order (MRO)?
DSA ยท 686 views ยท mro, inheritance
What is the difference between __getattr__ and __getattribute__?
DSA ยท 409 views ยท attributes, dunder
How does attribute lookup work on a Python object?
DSA ยท 404 views ยท attributes, lookup
What is the descriptor protocol?
DSA ยท 342 views ยท descriptors, data-model
What is the difference between del, __del__, and garbage collection?
DSA ยท 224 views ยท gc, del
How do Unpack and TypedDict enable type-safe **kwargs?
Backend ยท 174 views ยท typing, unpack, typeddict
Seen a Python question that is not here? Add it and help the next candidate.
Share a question