Ah, nevermind, #Python has a topo sort in the stdlib now.
> graphlib.TopologicalSorter
> Provides functionality to topologically sort a graph of hashable nodes.
https://docs.python.org/3/library/graphlib.html#graphlib.TopologicalSorter
Always read the docs kids!
lafleur, the CPython JIT fuzzer, now can compare timings for running a piece of code with JIT on and off.
The idea is that if the run with JIT on is much slower that with JIT off, we have found a performance bug.
Brandt Bucher suggested this mode. It took a while to get started on it, but it was simple to implement on top of Differential Mode.
So many modes, so little compute available...
#lafleur #JIT #fuzzing #fuzzer #CPython #Python

Want better, faster #Python typing (cli and IDE)? Use the same tools that the Instagram team uses on their millions of lines of code. That's the topic of this week's @talkpython
#523: Pyrefly: Fast, IDE-friendly typing for Python
with Abby Mitchell, Danny Yang, Kyle Into, and host @mkennedy
https://talkpython.fm/episodes/show/523/pyrefly-fast-ide-friendly-typing-for-python
While the questions to Guido van Rossum (the creator of #python) seem to be coming from a relentless AI bot, the answers are anything but.
The huge success of python is due to it being a human-centric language, and in turn this reflects the character of its creator.
www.odbms.org/blog/2025/10...
Beyond the AI Hype: Guido va...
While the questions to Guido van Rossum (the creator of #python) seem to be coming from a relentless AI bot, the answers are anything but.
The huge success of python is due to it being a human-centric language, and in turn this reflects the character of its creator.
www.odbms.org/blog/2025/10...
Beyond the AI Hype: Guido va...
Python 3.14登場、フリースレッド版正式サポート。実験的JITコンパイラも公式バイナリで利用可能に
https://www.publickey1.jp/blog/25/python_314jit.html
#publickey1 #プログラミング言語 #Python
Same goes for:
• "None" in an explicit "return None"
• "start=" in enumerate(..., start=1)
• "mode=" in open(... mode="wt")
• "else" in an if-else that returns, assuming it's clearer that way (https://pym.dev/unnecessary-else-statements/)
Many bits of #Python's syntax are "technically unnecessary" but useful.
Whenever you wonder "should I use the keys method on this dictionary, use it!"
Compare these 2:
for item in counts.keys(): ...
for item in counts: ...
The first one is more explicit and more readable. I know what the first one does, as does a new Python programmer, and even someone who wasn't sure whether counts was a dictionary.
This #Python tip (gripe?) brought to you by an overeager linter rule.
je m'étais offert une #camera dôme #PTZ , y'a 10 ans... (c'était pour détecter les chevreuils qui nous bouffent les salades !)
Évidemment à l'époque : pas d' #IA !
Aujourd'hui, j'ai non seulement fait une passerelle avec détection (me différencie chien/chat/personne/bagnole/vélo/chevreuil, j'ai pas pu test ce dernier du coup encore)
Le tout sur un seul core de petit proc raspi, avec tensorflow_lite #Python avec record auto start/stop, SMS, track de cible, et diffusion rtsp authentifiée à la demande... Grâce à l' #IA donc...
Bref, un équipement qui revit avec un usage optimisé et peu gourmand.
On aura des salades... à défaut de boulot ... ! 🤭 😂
🧐 Oh, a #tutorial on switching to #Jujutsu because apparently, typing in #Python isn't extreme enough for some folks. 📜 Who knew all the computer geeks secretly longed to be #ninja warriors? Next, we'll get a guide on how #coding in #C++ is basically a gateway to becoming a #samurai 🥋.
https://www.stavros.io/posts/switch-to-jujutsu-already-a-tutorial/ #Geek #Culture #Warriors #HackerNews #ngated
Join me Tuesday, Oct. 14 for a full day of Python data science, AI and generative AI code: https://learning.oreilly.com/live-events/python-data-science-full-throttle-with-paul-deitel-introductory-artificial-intelligence-ai-big-data-and-cloud-case-studies/0636920289197/
#python #datascience #AI #GenAI #machinelearning #deeplearning @OReillyMedia
💾 With a #Django web app, data is stored in a database, but we don't directly interact with the database. Instead, we write #Python classes called "models." Learn all about Django models in this article. https://www.mattlayman.com/understand-django/store-data-with-models/