How To Test Python Decorators? How To Bypass A Decorator?

How To Test Python Decorators? How To Bypass A Decorator?
Decorators are one of Python's coolest constructs, they are rather simple, yet quite powerful and flexible. They can greatly improve the structure of your code. In my projects, I always shoot for the highest test coverage possible, so naturally, if I have some custom decorators implemented, I always make sure to have some test coverage for them as well. In this article, I show you some of the best practices to test your decorators.VIEW POST

Is Python Memory Safe?

Is Python Memory Safe?
In this article I aim to explain the basics of memory handling in Python, and to answer some practical questions like: Is it possible to have a segfault in Python? Can you introduce memory leaks? Does Python have a garbage collector? How does Pythons GC work?VIEW POST

Will Python 2 Ever Die?

Will Python 2 Ever Die?
Python has been having two competing versions co-existing for almost twelve years. Now, that version 2 has officially reached its end of life, but shows no sign of dying out, it's time to ask: will Python 2 ever die or is it here to stay forever? Let's find out.VIEW POST

Privacy Preferences

We and our partners share information on your use of this website to help improve your experience. For more information, or to opt out click the Do Not Sell My Information button below.