Ayan Das · Intermediate Python: Generators, Decorators and Context managers - Part I
Welcome to the series of Intermediate Python tutorials. Before we begin, let me make it very clear that this tutorial is NOT for absolute beginners. This is for Python programmers who have familiarity with the standard concepts and syntax of Python. In this three parts tutorial, we will specifically look at three features of Python namely Generators, Decorators and Context Managers which, in my opinion, are not heavily used by average or below-average python programmers. In my experience, these features are lesser known to programmers whose primary purpose for using python is not to focus on the language too much but just to get their own applications/algorithms working. This leads to very monotonous, imparative-style codes which, in long run, become unmaintainable.
Welcome to the series of Intermediate Python tutorials. Before we begin, let me make it very clear that this tutorial is NOT for absolute beginners. This is for Python programmers who have familiarity with the standard concepts and syntax of Python. In this three parts tutorial, we will specifically look at three features of Python namely Generators, Decorators and Context Managers which, in my opinion, are not heavily used by average or below-average python programmers. In my experience, these features are lesser known to programmers whose primary purpose for using python is not to focus on…
related reading
- How to Use Generators and yield in Python – Real Pythonrealpython.com
- Functional Programming HOWTO — Python 3.14.6 documentationdocs.python.org
- How Python Asyncio Works: Recreating it from Scratchjacobpadilla.com
- Difference between Python's Generators and Iterators - Stack Overflowstackoverflow.com
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Generatorswiki.python.org
- Glossary — Python 3.14.6 documentationdocs.python.org
- Classes & Iterators - Dive Into Python 3diveintopython3.net
- Thinking in Pythonthinkinginpython.com
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- PEP 20 – The Zen of Python | peps.python.orgpeps.python.org
- Python Decorators (With Examples)programiz.com