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 ยท 860 views ยท modules, basics
What is uv and why is it replacing pip/poetry in 2025-26?
Backend ยท 712 views ยท uv, packaging, python3.11
What is the difference between __repr__ and __str__?
DSA ยท 453 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 ยท 888 views ยท scope, legb
What is the difference between __new__ and __init__?
DSA ยท 877 views ยท new, init
What is the difference between classmethod and staticmethod?
DSA ยท 790 views ยท classmethod, staticmethod
What are bound and unbound methods in Python?
DSA ยท 707 views ยท methods, binding
What is a deadlock in Python?
DSA ยท 694 views ยท threading, deadlock
Hard
7 questionsWhat is a weak reference in Python?
DSA ยท 729 views ยท weakref, memory
What is the Method Resolution Order (MRO)?
DSA ยท 684 views ยท mro, inheritance
What is the difference between __getattr__ and __getattribute__?
DSA ยท 407 views ยท attributes, dunder
How does attribute lookup work on a Python object?
DSA ยท 402 views ยท attributes, lookup
What is the descriptor protocol?
DSA ยท 340 views ยท descriptors, data-model
What is the difference between del, __del__, and garbage collection?
DSA ยท 218 views ยท gc, del
How do Unpack and TypedDict enable type-safe **kwargs?
Backend ยท 170 views ยท typing, unpack, typeddict
Seen a Python question that is not here? Add it and help the next candidate.
Share a question