» Subscribe to the dbader.org YouTube Channel for more Python tutorials.
Latest Python Tutorials:
- Interfacing Python and C: The CFFI Module
- Write More Pythonic Code by Applying the Things You Already Know
- Working With File I/O in Python
- How to Reverse a String in Python
- Mastering Click: Writing Advanced Python Command-Line Apps
- Working with Random Numbers in Python
- How to Send an Email With Python
- Python Tricks: The Book Is Now Available on Kindle
- Python Multi-line Comments: Your Two Best Options
- Writing Python Command-Line Tools With Click
5 Sublime Text Tweaks to Boost Your Python Productivity
Free 5-day class—just enter your email address below:
- How to use Sublime Text from the command line – Sublime Text comes with a handy command line tool (“subl”) that lets you control Sublime Text from the terminal. In this 3 minute screencast I’ll show you how to setup the command and what you can do with it.
- Setting up Sublime Text for Python development – I recently started using Sublime Text 2 more and more as my main editor for Python development. This article explains my setup and some tweaks that make Python programmers happy.
- Sublime Text plugin review: GitGutter – Let’s take a look at GitGutter, a Sublime Text 2/3 plugin that highlights lines modified since the latest Git commit.
- Sublime Text for Python development — My 2016 review – When you ask for editor recommendations as a Python developer one of the top choices you’ll hear about is Sublime Text. In this post I’ll review the status of Python development with Sublime Text as of 2016.
- Click & jump to any file or folder from the terminal – iTerm2 for macOS has a little known feature that lets you open files and folders simply by Cmd+Clicking on them in the terminal. Among other things, this is super handy for debugging tests.
- 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.
- Write More Pythonic Code by Applying the Things You Already Know – 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.
- Working With File I/O in Python – 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.
- How to Reverse a String in Python – 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.
- Mastering Click: Writing Advanced Python Command-Line Apps – How to improve your existing Click Python CLIs with advanced features like sub-commands, user input, parameter types, contexts, and more.
- Working with Random Numbers in Python – An overview for working with randomness in Python, using only functionality built into the standard library and CPython itself.