Hypothesis 6.x¶| hypothesis.readthedocs.io
A few years ago at work, I had a project which offered an opportunity to look at the new generation …| www.b-list.org
I’ve started writing more Python code lately (because of… AI, you know). In this post, I share the tools, libraries, configs, and other integrations I use for building production-grade Python applications following a frontend-backend architecture.| César Soto Valero
Development, data, design, debugging| chipx86.blog
2 posts published by chipx86 during June 2025| chipx86.blog
Python dataclasses are a really nice feature for constructing classes that primarily hold or work with data. They can be a good alternative to using dictionaries, since they allow you to add methods, dynamic properties, and subclasses. They can also be a good alternative to building your own class by hand, since they don't need…| ChipLog — Christian Hammond
Deciphering Glyph, the blog of Glyph Lefkowitz.| blog.glyph.im
The match statement takes an expression and compares its value with the case blocks which have some specified conditions.| GeekPython - Python Programming Tutorials
In my opinion, you should only introduce a named tuple to your code when you're updating a preexisting API that was already returning a tuple or you are wrapping a tuple return value from another API. Let's start with when you should use named tuples. Usually an API that returns| Tall, Snarky Canadian
Something that I’m tinkering with is making a proof assistant in python.| Hey There Buddo!
I've really enjoyed the shortcuts provided by Python's dataclasses.| startcodingnow.com
Good development practices for modern Python| www.stuartellis.name
This PEP proposes a new special form, TypeIs, to allow annotating functions that can be used to narrow the type of a value, similar to the builtin isinstance(). Unlike the existing typing.TypeGuard special form, TypeIs can narrow the type in both the if...| Python Enhancement Proposals (PEPs)
Back in June, I proposed a struct syntax for Python. I shared the post on Mastodon and got some feedback. Afterwards I thought about what I heard and talked it over with some folks. I've now coded up a proof-of-concept to share to get some more feedback from people to| Tall, Snarky Canadian
Some thoughts and takeaways on practical time series caching with Python and Redis from the Dashboards project that I implemented with Anyblock Analytics.| roman.pt
I restricted the use of dicts in my code to make it easier to follow and maintain. Here's my explanation of the benefits and advice on what you can use instead. Bonus point: what to do with all the legacy code when there's no time to eradicate all the dicts.| roman.pt
This post is an account of why I prefer using the attrs library over Pydantic. I'm writing it since I am often asked this question and I want to have something concrete to link to.| The Three of Wands
How to sort parent nodes before child nodes? - Topological sort| www.cameronmacleod.com
An Enum is a set of symbolic names bound to unique values. They are similar to global variables, but they offer a more useful repr(), grouping, type-safety, and a few other features. They are most ...| Python documentation
A guide to modern Python tooling with a focus on simplicity and minimalism.| cjolowicz.github.io
Source code: Lib/pprint.py The pprint module provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the interpreter. If the formatted struc...| Python documentation
Source code: Lib/copy.py Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy ...| Python documentation
Some hints and tips for getting started with Mypy and introducing it to existing projects| calpaterson.com
I recently read “Parse, Don’t Validate,” shared it with my coworkers, and let it bring me out of retirement on lobste.rs. It captures a concept that I’ve struggled to explain, leading to cases where I couldn’t say why I thought something was better beyond a vague “It’s a matter of taste.” That’s not very satisfactory as a justification when you’re trying to explain to someone why they should rework a piece of code in a review.| asthasr.github.io
As data engineers, you might have heard the terms functional data pipeline, factory pattern, singleton pattern, etc. One can quickly look up the implementation, but it can be tricky to understand what they are precisely and when to (& when not to) use them. Blindly following a pattern can help in some cases, but not knowing the caveats of a design will lead to hard-to-maintain and brittle code! While writing clean and easy-to-read code takes years of experience, you can accelerate that by und...| www.startdataengineering.com
Learn about Python's dataclass module and implement a working version from scratch!| xavd.id
Story time When I go on vacation with a fellow Python developer, inevitably I will talk about Python. 😁 Back in September, Andrea and I drove the Cabot Trail with our friends Dusty and Jen, which led to a discussion about the match statement and how Dusty and I both wished| Tall, Snarky Canadian
Author, Andrew Dalke and Raymond Hettinger,. Python lists have a built-in list.sort() method that modifies the list in-place. There is also a sorted() built-in function that builds a new sorted lis...| Python documentation
An attempt at catharsis. This is a deeply personal blog post about the most influential project I’ve ever created: attrs, the progenitor of modern Python class utilities. I’m retelling its history from my perspective, how it begot dataclasses, and how I’m leading it into the future.| Hynek Schlawack
namedtuple has been around since forever, and over time, its convenience saw it used far outside its originally intended purpose. With dataclasses now covering part of those use cases, what should one use named tuples for? In this article, I address this question, and give a few examples from real code.| death and gravity
In this article, we look at a heuristic for using classes in Python, with examples from real-world code, and some things to keep in mind.| death and gravity
On your Python learning journey, you may have heard that a great way to get better is to read code written by other people. That's true, but finding good code to study is not easy, mostly because the design philosophy and the reasoning behind the code are rarely documented. The Python standard library is special in this regard: not only is the code open source, but the discussions around the design decisions are public, too.| death and gravity