Lazy imports are coming to Python :tada:
PEP 810: Explicit lazy imports - PEPs - Discussions on Python.org
https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131/466
Apparently I'm going to have some articles, screencasts, and curriculum to update after 3.15 is released! 😅
Python SC accepted PEP 798
PEP: https://peps.python.org/pep-0798/
Acceptance: https://discuss.python.org/t/pep-798-unpacking-in-comprehensions/99435/60
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 #Python learners that there are 4-ish uses of * and 3 uses of **. That'll now be 5-ish uses of * and 4 uses of **.
Python 3.15 will include lazy imports, but it won't allow this:
lazy from module import *
We've updated our "AI and its impact" panel discussion - welcome Mihai to the panel!
Tickets are still on sale for PyCon Ireland 2025:
https://python.ie/
#PyConIE #PythonIE #PyCon #Python

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.
Exiting #Python news! Lazy imports are gonna be a thing!
https://lwn.net/Articles/1044844/
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

⏰ 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)
👉 https://www.pycascades.com/news/cfp-review/

PEP 810: Explicit lazy imports https://lobste.rs/s/cn3fuv #python
https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131/466
@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: https://urbanists.video/w/kNht44gXqiN2w95ZhxQRVW
Code: https://gitlab.com/markstos/qgis-walk-potential
Example of how a pedestrian demand metric is useful for finding locations to prioritize sidewalk funding: https://mark.stosberg.com/toolkit-for-sidewalk-location-priority/
#gis #qgis #mapping #openstreetmap #python
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.
Got a new t-shirt!
#python #tractor #velocitractor
CC @foosel
