#PythonStandardLibrary

2024-02-01

@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

Paolo Melchiorrepaulox@fosstodon.org
2022-12-02

🌠 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

πŸ‘‡
github.com/pauloxnet/adventofc

Paolo Melchiorrepaulox@fosstodon.org
2022-11-30

This year I will participate in #AdventOfCode β›„ using only #Python 3.11 :python: 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) 🌐

adventofcode.com/

Advent of Code website screenshot

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst