@driscollis yet another thing in the #python standard library I've never seen or used. I wonder when one would use the functools.singledispatch over a set of if isinstance(..) elif isinstance(..)? The singledispatch feels like a bit of magic since going to the definition of the function does not show what it does and one has to go to Ctrl-F for all the @func.register's to find the implementation πŸ€”

#functools #pythonstandardlibrary

🌠 I created a #GitHub repository with my #Python solutions for the #AdventOfCode puzzles

🧩 All solutions use only the #PythonStandardLibrary with no need for external packages

πŸ”¬ #Tests are included in function #docstrings and can be run using the #doctest module

⚠️ I don't think I will be able to enter the #solutions every day and definitely not in the morning

🐍 I participate in #AoC to #improve my Python #knowledge rather than to compete in the #leaderboard

πŸ‘‡
https://github.com/pauloxnet/adventofcode

GitHub - pauloxnet/adventofcode: Pure Python solutions for the Advent of Code puzzles written by Paolo Melchiorre.

Pure Python solutions for the Advent of Code puzzles written by Paolo Melchiorre. - GitHub - pauloxnet/adventofcode: Pure Python solutions for the Advent of Code puzzles written by Paolo Melchiorre.

GitHub

This year I will participate in #AdventOfCode β›„ using only #Python 3.11  without any external package, but using the modules of the #PythonStandardLibrary 🌠

Advent of Code #AoC is an annual set of computer #programming #challenges that follow an #Advent calendar πŸ—“οΈ

The first #puzzles will unlock on #December 1st at midnight EST (UTC-5) 🌐

https://adventofcode.com/

Advent of Code 2025