News

Learn how to use Python’s optional type-hinting syntax to create cleaner and more useful code. Credit: patpitchaya / shutterstock Python is best thought of as a dynamic but strongly typed language.
Many Python fans have longed for the language to adopt functional programming features. Now they can get those features without having to switch to a new Python implementation. Coconut, a newly ...
Another concession is that Python relies heavily on outside libraries to perform actions that other languages accomplish natively. This effectively hides the true size of the Python code. Complexity ...
Improve your Python testing even more. In my last two articles, I introduced pytest, a library for testing Python code (see "Testing Your Code with Python's pytest" Part I and Part II). pytest has ...
The if __name__ == "__main__": construct is one of these.. What does Python's 'if name equals main' construct do?. Python's if __name__ == "__main__": construct enables a single Python file to not ...