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V3UTYZj8kO4lvwbitRrG1wj+1zUMFcVLudc8DSartbj+Y5+MKuBc/+0t4x+9yatViU60ymoSKIlWhdftkORn2VuVW61zF+XkTMa+fv/v6LKd/lI5b8IKOqZSxTv8bJQQPCACEWca6zAYTX3SYVq2xDOi89VItY/OFKT/6gP4dI4y9koAdL4OTIEDsp6rtbFuW1kmh
summer
- Evaluation Timing of Set Comprehensions vs. Generator Expressions in PythonPython set comprehensions evaluate immediately; generator expressions are lazy and bind only the outer iterator. Examples show why results diverge after the list changes.Python3 min
summer
- Understanding Python's GIL: The Problems It Solves and the Limits It ImposesThe GIL is not just why Python threads can't use multiple cores. It is CPython's engineering trade-off among refcounting, the object model, and C extensions.ThreadConcurrencyPythonGILAtomicity9 min
- Decorator @Cached_propertyStudy Python's cached_property decorator, how it stores computed values on instances, and where it fits in Django-style code.PythonDjangoDecorator3 min
spring
- Programming Languages Cheat SheetA quick reference for data structures, basic syntax, and essential APIs in Lua, JavaScript, Go, Python, and Java.PythonJavaJavaScriptLuaGo27 min
- Python Data Structures Cheat SheetA quick reference for Python data structures and their common operations, from lists and dicts to queues and stacks.PythonAlgorithm8 min
winter
- Decorators Pattern in PythonUnderstand Python decorators as a design pattern, including first-class functions, simple wrappers, chained decorators, and common uses.PythonDecorator3 min
autumn
- Python Dev Environment and Toolchain: VSCode, UV, RuffBuild a modern Python workflow from interpreter, virtual env, and dependency management to editor setup and Ruff, with the trade-offs behind each step.PythonVSCodeRuffUV10 min