What’s New In Python 3.13

Editors, Adam Turner and Thomas Wouters,. This article explains the new features in Python 3.13, compared to 3.12. Python 3.13 was released on October 7, 2024. For full details, see the changelog. ...

Python documentation

Mia Bajić: The Standard Library Tour @ PyCon Ireland 2023

https://youtu.be/ZId-JEMSCQ8

The Standard Library Tour is designed to provide attendees with an understanding of Python's standard library less known features. Have you ever found yourself writing complex code only to discover that Python has tools available within its library that could have made your job easier? Then this talk is for you!

#PyCon #PyConIe #PyConIe2023 #functools #itertools #doctest

Mia Bajić: The Standard Library Tour @ PyCon Ireland 2023

YouTube

Released an updated version (0.3.1) of sijo-doctest, a #doctest library for
#CommonLisp.

This includes some quality of life features, bugfixes and support for #SBCL, #ECL, #CCL and #ABCL.

https://github.com/simendsjo/sijo-doctest

GitHub - simendsjo/sijo-doctest: Doctests for Lisp

Doctests for Lisp. Contribute to simendsjo/sijo-doctest development by creating an account on GitHub.

GitHub
GitHub - simendsjo/sijo-doctest: Doctests for Lisp

Doctests for Lisp. Contribute to simendsjo/sijo-doctest development by creating an account on GitHub.

GitHub
I have even played around with a few #microformats on top of JDAML -- one codenamed #Znatchke which is something in between HTML and #Markdown and one which shows how something like #doctest could be implemented with JDAML (suggested by @RyunoKi).

When teaching #rust, I often see people have a "Wow 🤯!" experience when I show #rustdoc #doctest system: you write small pieces of Rust code in your documentation and they are then executed as part of your test suite.

What people often don't know is that this system is ancient! I first met in #python and there it was introduced in 1999: https://groups.google.com/g/comp.lang.python/c/DfzH5Nrt05E/m/Yyd3s7fPVxwJ. That's 24 years ago!

I don't know if this was the first implementation of this concept?

I created a small #Python #Markdown extension that parses `pycon` syntax code blocks *without indentation and without fences*, and renders them using #pymdownx's Highlight extension 🙂

It will be useful in Python docstrings, to add examples anywhere just how #doctest expects them!

It's immediately available to my sponsors and has been added to the GraviFridge goal (https://pawamoy.github.io/insiders/#1000-gravifridge-user-manual) 😊

Insiders - pawamoy's website

Findings, thoughts, tutorials, work. Pieces of my mind!

🌠 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
@HeidiSeibold I also write tests for my software. They are not primarily for usability but mostly for assuring quality and correctness, but I also think they can serve to demonstrate how the software works or should be expected to work.
In #Python , one testing framework, #doctest , is convenient for incorporating tests as examples into the documentation. This way they can both serve as usage examples in the before-mentioned docstrings and as automated tests.