News

This post explains what a Python module is and how to use it to drastically extend the capabiltiies of your code. Plus: how to make your own!
Learn which Python standard library modules are headed for the boneyard in Python 3.13, and how to replace them.
If the script is imported, __name__ is set to the name of the module. Example of Python's __name__ variable in action The following two Python files demonstrate how the __name__ variable differs when ...
Devs unknowingly use “malicious” modules snuck into official Python repository Code packages available in PyPI contained modified installation scripts.
How to use cProfile The cProfile module gathers statistics about the execution time of a Python program. It can report on anything from the entire app to a single statement or expression.