Created on Mar 19, 2018
Important things in Python you should know better.
Curated By:
🔗 (https://jeffknupp.com/blog/2014/...)
The class is a fundamental building block in Python.Understanding what classes are, when to use them, and how they can be useful is essential, and the goal of this article.
🔗 (https://www.youtube.com/watch?v=...)
A Decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it. Sounds confusing – but it's really not.
🔗 (https://www.youtube.com/watch?v=...)
Python generators are a simple way of creating iterators. All the overhead we mentioned above are automatically handled by generators in Python.
🔗 (https://www.youtube.com/watch?v=...)
Context managers allow you to allocate and release resources precisely when you want to. The most widely used example of context managers is the with statement.
🔗 (https://www.youtube.com/watch?v=...)
A metaclass is most commonly used as a class-factory. Like you create an instance of the class by calling the class, Python creates a new class by calling the metaclass.
Be the first to comment on this collection.