Monkey Patching Python Code

Python is a dynamic scripting language. Not only does it have a dynamic type system where a variable can be assigned to one type first and changed later, but its object model is also dynamic. This allows us to modify its behavior at run time. A consequence of this is the possibility of monkey patching. […]

Continue Reading 0
Logging in Python<br/>Photo by <a href="https://www.pexels.com/photo/brown-firewood-122588/">ilaria88</a>. Some rights reserved.

Logging in Python

Logging is a way to store information about your script and track events that occur. When writing any complex script in Python, logging is essential for debugging software as you develop it. Without logging, finding the source of a problem in your code may be extremely time consuming. After completing this tutorial, you will know: […]

Continue Reading 4

Avatar of user Prashant Saini
Prashant Saini

Prashant Saini

Profiling Python Code

Profiling is a technique to figure out how time is spent in a program. With these statistics, we can find the “hot spot” of a program and think about ways of improvement. Sometimes, a hot spot in an unexpected location may hint at a bug in the program as well. In this tutorial, we will […]

Continue Reading 2