The Three of Wands
  • Home

The Categories of Bugs in Python Apps

Algebraic Data Types in (typed) Python

Python is two languages now, and that's actually great

attrs iv: Zero-overhead Frozen attrs Classes

2 years ago 1 min read attrspythontyping
attrs supports frozen classes. Frozen classes are cool for a multitude of reasons, but they're a tiny bit slower to instantiate compared to non-frozen classes. But there's a way to avoid this overhead and make frozen classes be the exact same speed as ordinary classes.
Read Now Read Later
Tin
By: Tin

The Categories of Bugs in Python Apps

2 years ago 7 min read pythontyping
Say you're writing a Python program, of any kind but maybe a network service. You're likely to err (you're human, after all) and produce errors (bugs, defects)
Read Now Read Later
Tin
By: Tin

Intro to cattrs 23.1.0

2 years ago 4 min read pythoncattrs
Instead of my usual Twitter and Fediverse threads, for this release of cattrs I figured I'd try something different. A blog post lets me describe the additions in more detail, provide
Read Now Read Later
Tin
By: Tin

Algebraic Data Types in (typed) Python

3 years ago 7 min read python
By properly utilizing Algebraic Data Types (ADTs, not to be confused with abstract data types), you can transform certain types of invalid states from runtime errors into type-checking errors, making them an excellent
Read Now Read Later
Tin
By: Tin

Python is two languages now, and that's actually great

3 years ago 4 min read python
Everyone doing Python nowadays is aware Python supports optional type hints, and has for some time now. This has created a small schism in the community, with some people being completely uninterested in
Read Now Read Later
Tin
By: Tin
Page 1 of 4
Older Posts
Powered by Ghost
The Three of Wands