python

Back Open Paginator
08.10.2025 20:10
objects (@objects@pleroma.envs.net)
Python 3.14 is out! #Python #programming #software
https://docs.python.org/3.14/whatsnew/3.14.html


Show Original Post


08.10.2025 19:44
r (@r@fed.brid.gy)

I like the wording about this new Python (programming language) version: Python 3.14 π-thon #python




Show Original Post


08.10.2025 19:36
RodStephens (@RodStephens@hachyderm.io)

Make a skinned form in Python, Part 4
rodstephensbooks.com/skinned_f
#Python #SkinnedForms #UserInterface #UI





Show Original Post


08.10.2025 19:25
AndriiKuznietsov75 (@AndriiKuznietsov75@social.kyiv.dcomm.net.ua)

🐍👨‍💻 Команда #Python випустила версію 3.14, яка має кілька нових важливих функцій, включно з підтримкою вільної багатопотоковості, можливістю використання паралельних інтерпретаторів, покращеною підтримкою налагоджувача та новим інтерпретатором з вибором опції, яка підвищує продуктивність на 3-5%.

python.org/downloads/release/p




Show Original Post


08.10.2025 19:25
jscholes (@jscholes@dragonscave.space)

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.)




Show Original Post


08.10.2025 19:04
driscollis (@driscollis@mastodon.social)

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:





Show Original Post


08.10.2025 19:01
meejah (@meejah@mastodon.social)

Just added 3.14 to the testing matrix of magic-wormhole, magic-wormhole-transit-relay, magic-wormhole-mailbox-server and fowl with no issues 🥳




Show Original Post


08.10.2025 18:42
xavier (@xavier@pony.social)

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




Show Original Post


08.10.2025 18:40
lobsters (@lobsters@mastodon.social)

Python 3.14 Is Here. How Fast Is It? lobste.rs/s/p0iw9e
blog.miguelgrinberg.com/post/p




Show Original Post


08.10.2025 18:38
carapace (@carapace@mastodon.social)

I call this the "Bike Chain" method to make a circular linked list in :

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...




Show Original Post


08.10.2025 18:35
rye (@rye@ioc.exchange)

Today - Tucson Python

meetup.com/tucson-python-meetu

#tucson #python




Show Original Post


08.10.2025 18:33
silentexception (@silentexception@mastodon.social)

Mais si vous êtes allergiques aux pinceaux, c'est possible en avec la librarie . 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.
NB: j'aime bien , c'est pratique pour tester des trucs.





Show Original Post


1 ...1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 ...1559
UP