Interfacing Python and C: The CFFI Module
How to use Python’s built-in CFFI module for interfacing Python with native libraries as an alternative to the “ctypes” approach.
How to use Python’s built-in CFFI module for interfacing Python with native libraries as an alternative to the “ctypes” approach.
There’s a mistake I frequently make when I learn new things about Python… Here’s how you can avoid this pitfall and learn something about Python’s “enumerate()” function at the same time.
Learn the basics of working with files in Python. How to read from files, how to write data to them, what file seeks are, and why files should be closed.
An overview of the three main ways to reverse a Python string: “slicing”, reverse iteration, and the classic in-place reversal algorithm. Also includes performance benchmarks.
How to improve your existing Click Python CLIs with advanced features like sub-commands, user input, parameter types, contexts, and more.
An overview for working with randomness in Python, using only functionality built into the standard library and CPython itself.
Learn how to send emails using Python code via the built-in “smtplib” module from the standard library.
Get the Kindle version of “Python Tricks: A Buffet of Awesome Python Features” and enjoy a smooth reading experience across all of your devices.
Does Python support multi-line comments the way other languages do? What are your options for writing comment blocks in Python if you need them?
An in-depth tutorial on writing Python command-line (CLI) apps using the Click library for argument parsing and more.
How and why you should use the built-in enumerate function in Python to write cleaner and more Pythonic loops.
Improve Your Python with a fresh 🐍 Python Trick 💌 every couple of days
🔒 No spam ever. Unsubscribe any time.