python

Back Open Paginator
03.11.2025 21:57
slackline (@slackline@mastodon.social)

Lazy imports are coming to Python :tada:

PEP 810: Explicit lazy imports - PEPs - Discussions on Python.org
discuss.python.org/t/pep-810-e




Show Original Post


03.11.2025 21:57
treyhunner (@treyhunner@mastodon.social)

Apparently I'm going to have some articles, screencasts, and curriculum to update after 3.15 is released! 😅

Python SC accepted PEP 798

PEP: peps.python.org/pep-0798/

Acceptance: discuss.python.org/t/pep-798-u

So this:
[*row for row in list_of_lists]

Will do the same thing as this:
[x for row in list_of_lists for x in row]

I often tell new learners that there are 4-ish uses of * and 3 uses of **. That'll now be 5-ish uses of * and 4 uses of **.




Show Original Post


03.11.2025 21:37
treyhunner (@treyhunner@mastodon.social)

Python 3.15 will include lazy imports, but it won't allow this:

lazy from module import *




Show Original Post


03.11.2025 21:27
Python_Ireland (@Python_Ireland@mastodon.ie)

We've updated our "AI and its impact" panel discussion - welcome Mihai to the panel!

Tickets are still on sale for PyCon Ireland 2025:
python.ie/

#PyConIE #PythonIE #PyCon #Python





Show Original Post


03.11.2025 21:19
rnb (@rnb@framapiaf.org)

L'abandon des extensions #python par #Gedit a eu un effet positif : m'obliger à me bouger les fesses et à reprendre les évolutions sur l'éditeur #ZimWiki

Première étape : transformer son moteur wiki, basée sur la syntaxe de #DokuWiki , pour gérer la syntaxe plus répandue #markdown.

J'avais commencé le taf il y a des années (premier commit en... 2011).

Je recommande par ailleurs très fortement ce logiciel pour prendre/organiser des notes/textes.

zim-wiki.org/




Show Original Post


03.11.2025 21:01
danielquinn (@danielquinn@mastodon.social)

Exiting news! Lazy imports are gonna be a thing!

lwn.net/Articles/1044844/




Show Original Post


03.11.2025 20:49
tlohde (@tlohde@fediscience.org)

polygons polygons. lots and lots of polygons for today's #30DayMapChallenge

I was planning on finding some ice wedge polygons...but got distracted by the sheer number of lakes on this island. So, I present: The many lakes of Qikiqtaq (a.k.a King William Island).

Don't try to infer any meaning from the different shades of blue - it's all random.

Bonus distribution of lake areas (log x-axis)

As usual, this was thrown together with #python #matplotlib #geopandas and #osmnx for getting the data from #OpenStreetMap





Show Original Post


03.11.2025 20:31
pycascades (@pycascades@hachyderm.io)

⏰ Don’t miss your chance — the #PyCascades 2026 Call for Proposals is still open! 🐍✨

We’re heading to Vancouver, BC 🇨🇦 and want to hear your story — from first-time speakers to seasoned Pythonistas.

🗓️ New deadline: Nov 4, 2025 (AoE)
👉 pycascades.com/news/cfp-review/

#Python #Community #CFP #PSF





Show Original Post


03.11.2025 20:25
lobsters (@lobsters@mastodon.social)

PEP 810: Explicit lazy imports lobste.rs/s/cn3fuv
discuss.python.org/t/pep-810-e




Show Original Post


03.11.2025 20:19
markstos (@markstos@urbanists.social)

@cargot_robbie I've posted an updated demo video of my QGIS "Walk Potential" plugin and published the code to Gitlab.

The latest version uses a free isochrone service by default. No dependencies, subscriptions, or licenses required!

Demo: urbanists.video/w/kNht44gXqiN2
Code: gitlab.com/markstos/qgis-walk-
Example of how a pedestrian demand metric is useful for finding locations to prioritize sidewalk funding: mark.stosberg.com/toolkit-for-

#gis #qgis #mapping #openstreetmap #python




Show Original Post


03.11.2025 20:13
rnb (@rnb@framapiaf.org)

Info #dev #python pour celleux qui, comme moi, écrivent du pyhton seulement 2-3 fois par mois :

On peut générer le fichier de configuration #pylint avec la commande suivante :

pylint --generate-rcfile > .pylinrc

Le truc génial, c'est que ça met toutes les règles avec leur valeurs par défaut ET des commentaires qui expliquent leur rôle.

Y a plus qu'à bidouiller en fonction du projet.




Show Original Post


03.11.2025 20:06
judy2k (@judy2k@chaos.social)

Got a new t-shirt!

#python #tractor #velocitractor

CC @foosel





Show Original Post


1 ...1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 ...1565
UP