teachmepython.bsky.social
@teachmepython.bsky.social
Need to get a Windows application's version number? Here's an old example that shows how to do it with #Python
September 15, 2026 at 10:04 PM
How to download a file over FTP with #Python using ftplib
September 15, 2026 at 6:03 PM
Need to time small #Python snippets? Try the `timeit` module!
September 9, 2026 at 9:58 PM
Do you use regular expressions in #Python? If not, here's a simple example to get you started:
September 9, 2026 at 5:02 PM
How to use a lock with #Python's multiprocessing module
September 9, 2026 at 2:11 PM
How to use a #Python lambda with the `map()` function to triple each number in a sequence returned from `range()`
September 1, 2026 at 8:58 AM
Have you tried the fabric package for #Python?

You can use Fabric to connect to a remote machine and run commands on it. Here's an example where I ran a docker command:
August 31, 2026 at 9:59 PM
Need to test is a sequence is populated with Truthy values in #Python?

Try using the built-in `all()` function:
August 31, 2026 at 5:54 PM
The latest episode of The Python Show Podcast is out now. In this episode, I have special guest, Tim Hopper, author of the Python Developer Tooling Handbook.

We chat about #Python, tooling in Python, AI, book writing, and lots more!
August 27, 2026 at 5:53 PM
Two methods to find the most common number in a list with #Python 🐍🔥
August 26, 2026 at 9:56 PM
One way to sort a #Python dictionary by value:
August 26, 2026 at 5:04 PM
Which #Python charting library do you use?

🐍matplotlib
🐍xy
🐍seaborn
🐍plotly
🐍bokeh
🐍altair
🐍plotnine
🐍pygal

Or something else?
August 25, 2026 at 4:57 PM
How to use a lock with #Python's multiprocessing module:
August 19, 2026 at 5:03 PM
Have you ever created a ternary expression in #Python?

A ternary is a one-line conditional statement. Check it out:
August 18, 2026 at 10:00 AM
Did you know you can do function overloading in #Python with `functools`?

Here's an example:
August 17, 2026 at 12:57 PM
How to create a simple thread pool in #Python 🐍🕸
August 16, 2026 at 9:00 AM
#Python Pop Quiz 🐍❓

What is the output of the following code?

A) An exception is raised
B) x=...
C) x=Ellipsis
D) Something else
August 15, 2026 at 9:00 AM
How to reverse a string and a list in #Python using the same code!
August 14, 2026 at 1:56 PM
PyPI exceeded 2 EXABYTES in bandwidth served in 2026 so far! That'scrazy!
August 12, 2026 at 8:44 PM
Did you know you can add an `else` statement to a `while` loop in #Python?

If so, what do you use it for?

If not, here's an example:
August 11, 2026 at 5:01 PM
Have you ever used a generator expression in #Python? If so, what did you use it for?
August 11, 2026 at 9:04 AM
Pyrefly, a super fast #Python type checker, dropped version 1.2 last week

This release includes:

🐍 New support for Bazel 
🐍 New support for attrs
🐍 The type checker coverage tool is now stable
🐍 and more!
August 10, 2026 at 10:03 PM
Want to know how many cores on your CPU with #Python? You can use the multiprocessing module for that 🐍🔥
August 10, 2026 at 5:01 PM
My friend, Adam Johnson, has released a new versio nf of time-machine, a library for mocking the current date and time in Python tests

New features:

🐍 Python 3.15 support
🐍 Faster patched functions
🐍 Subinterpreter support
🐍 Built-in freezegun migration
August 7, 2026 at 6:39 PM
Django 6.1 is out now!

New features include:

🐍Database level delete options for ForeignKey
🐍Dictionary based email settings
🐍Support for Python 3.12-3.14
🐍Model field fetch modes

and more!
August 7, 2026 at 12:56 PM