Python Backstage • Disassembling Python Code Using the `dis` Module
0 1
Let's look behind the scenes to see what happens when you run your Python (CPython) code
on Jul 9
I Want to Remove Duplicates from a Python List • How Do I Do It?
0 0
Lists can have duplicate values. But sometimes, you don't want repeated items. Let's explore how to deal with this.
on Jun 23
Demystifying Decorators • They Don't Need to be Cryptic
0 0
"What on Earth is going on with decorators?" Is this you? They're not as hard as you think. But we need to get there step by step
on Apr 21
The Properties of Python's `property`
0 0
Exploring Python's properties through my return to athletics training
on Apr 6
I Want My Own Fancy F-String Format Specifiers… Sure You Can
0 0
You're familiar (perhaps) with the format specifiers you can use in f-strings, such as `{:0.2f}`. But can you create your own?
on Mar 23
Loss of Words • A Nested Journey (# 1 in The `itertools` Series • `product()`)
0 0
Follow Yteria on her troubled journey, explore her unusual world in this first article in The `itertools` Series. Discover `itertools.product()` and `itertools.starmap()`
on Mar 16
0 0
Last article of the year and a Python Christmas tree or two (using turtle, of course)
on Dec 22
When a Duck Calls Out • On Duck Typing and Callables in Python
0 0
Functions and classes have something in common: they're callable • Python's duck typing
on Dec 8
Goat or Car? Solving The Monty Hall Problem With Python and NumPy
0 0
It's a different Monty this time—not Monty Python and not Monty from The White Room analogy, either
on Dec 1
The Code That Almost Led to Disaster • A Starbase Story
0 0
A Python pitfall • Maybe it's not quite Episode IV level of drama, but drama it is nonetheless…
on Nov 23
1969: Can You Land on The Moon? • A Python turtle Lunar Lander
0 0
Revisiting one of my favourite projects: a lunar lander using, yes, the one and only turtle module
on Nov 16
Let's Eliminate General Bewilderment • Python's LEGB Rule, Scope, and Namespaces
0 0
Let's shed light on what can be a confusing topic
on Oct 27
What's In A List—Yes, But What's *Really* In A List
0 0
My son's Python homework and what it tells us about Python's data structures
on Oct 18
What Can A Coffee Machine Teach You About Python's Functions?
0 0
Let me tell you about one of my favourite analogies
on Sep 28
0 0
What happens when you first create an instance of a class? The special method you'll (almost) never need to use: `.__new__()`
on Sep 17
If You Haven't Got A Clue What "Pass By Value" or "Pass By Reference" mean, read on…
0 0
…and Python functions don't use either of them. Say hello to "Pass by Assignment"
on Aug 26
Is There Any Doctor Here? We're All Doctors…
0 1
Python's built-in `any()` and `all()`, and a glimpse at short-circuiting
on Aug 10
What's The Difference Between NumPy's `arange()` and `linspace()` (A NumPy for Numpties article)
0 0
They both generate NumPy arrays with evenly spaced values, but they're not the same
on Jul 19, 2024
After You. No, I Insist, You Go First • Python's Operator Precedence
0 0
Some topics are boring, and Python's operator precedence is one of them. Let's fix that…
on Jul 4, 2024
If Feynman Was Teaching Today… A Simplified Python Simulation of Diffusion (Part 1)
0 0
Understanding the real world is not always easy. A Python simulation can help. And let's find ways of making it efficient, too.
on Jun 26, 2024
`bytes`: The Lesser-Known Python Built-In Sequence • And Understanding UTF-8 Encoding
0 0
The `bytes` data type looks a bit like a string, but it isn't a string. Let's explore it and also look at the main Unicode encoding, UTF-8
on Jun 4, 2024
Where's William? How Quickly Can You Find Him? • What's a Python Hashable Object?
0 0
You can ignore reading about hashable objects for quite a bit. But eventually, it's worth having an idea of what they are.
on May 11, 2024
0 0
Here are all the articles in this series on object-oriented programming: Year 1: Harry Potter and The Object-Oriented Programming Paradigm Year 2: Let The Real Magic Begin • Creating Classes in Python Year 3: There's A Method To The Madness • Defining Methods In Python Classes
on May 8, 2024
The Magician's Sleight of Hand
0 0
A Python switcheroo that will leave the audience stunned
on May 1, 2024
"It works!" is The Most Dangerous Phrase in Programming • Understanding `itertools.groupby()`
0 0
"I'll skip reading the docs. I don't need them" is another one! Follow this real-life saga (!) while I was using `itertools.groupby()`
on Apr 24, 2024
Rambling Reflections • Twelve Months of The Python Coding Stack
0 0
When I started The Python Coding Stack one year ago, I had one rule: Ignore all other rules. This is a personal essay to mark this arbitrary milestone.
on Apr 17, 2024
0 0
It doesn't take long in the NumPy world before you come across broadcasting.
on Mar 28, 2024