I like the wording about this new Python (programming language) version: Python 3.14 π-thon #python
Make a skinned form in Python, Part 4
https://rodstephensbooks.com/skinned_form_part4.html
#Python #SkinnedForms #UserInterface #UI

🐍👨💻 Команда #Python випустила версію 3.14, яка має кілька нових важливих функцій, включно з підтримкою вільної багатопотоковості, можливістю використання паралельних інтерпретаторів, покращеною підтримкою налагоджувача та новим інтерпретатором з вибором опції, яка підвищує продуктивність на 3-5%.
https://www.python.org/downloads/release/python-3140/
HTTPX may be the #Python HTTP client of the future, but I miss the documentation practices of Requests and its surrounding ecosystem.
Can you pass headers to HTTPX as a sequence of tuples? What is the default chunk size when iterating over the bytes of a streamed response? In exactly what scenarios does the Hishel caching library throw exceptions vs pulling fresh data?
Just three examples of questions I've personally failed to answer by reading the documentation in the last 24 hours, requiring additional research and experimentation. For Hishel in particular, I can't even find an API reference.
(Note: not looking for suggestions to go and file issues or PRs.)
#Python Tricks
Want to read the Python code of the file you are executing?
Add the following to the end of your script and it will output the entire file to stdout:

Just added #Python 3.14 to the testing matrix of magic-wormhole, magic-wormhole-transit-relay, magic-wormhole-mailbox-server and fowl with no issues 🥳
Building a Python web server with Litestar has been a pleasure so far, but one feature is currently missing when working with Jinja templates: the ability to assert on the input context instead of the HTML output. Here's how I implemented it.
#litestar #python #pytest #testing #jinja
Python 3.14 Is Here. How Fast Is It? https://lobste.rs/s/p0iw9e #python
https://blog.miguelgrinberg.com/post/python-3-14-is-here-how-fast-is-it
I call this the "Bike Chain" method to make a circular linked list in #Python :
a = link = [0]
for n in range(1, 10):
a = n, a
link.append(a)
Then...
while True:
n, a = a
print(n, end='')
This would print:
9876543210987654321098765432109876543210...
Today - Tucson Python
https://www.meetup.com/tucson-python-meetup/events/311059637/
Mais si vous êtes allergiques aux pinceaux, c'est possible en #Python avec la librarie #turtle. Ou juste plot, mais c'est plus hard core. Ca c'est la spirale de Theodorus (N=34), c'est vieux tout ça, me demandez pas d'expliquer. #mathématiques
NB: j'aime bien #Jupyter, c'est pratique pour tester des trucs.
