Articles by Gary Hutson

I know dictionaries, but what is a DefaultDict?

June 13, 2022 | Gary Hutson

The supporting repository and code file is: This is aimed as a short article to explain why you would want to use default dictionaries. What is a defaultdict I hear you ask? A defaultdict is a container like dictionary present in ...
[...Read more...]

Narly NamedTuples in Python

May 23, 2022 | Gary Hutson

NamedTuples are an excellent way to make your Python code more useful and readable. In short a NamedTuple is an alternative to the built-in tuple . This extension type enhances standard tuples so that their elements can be accessed by both their attribute name and the positional index. This is really ...
[...Read more...]
1 2 3