python

Back Open Paginator
13.10.2025 18:40
carapace (@carapace@mastodon.social)

Ah, nevermind, has a topo sort in the stdlib now.

> graphlib.TopologicalSorter
> Provides functionality to topologically sort a graph of hashable nodes.

docs.python.org/3/library/grap

Always read the docs kids!




Show Original Post


13.10.2025 18:34
danzin (@danzin@mastodon.social)

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





Show Original Post


13.10.2025 17:59
talkpython (@talkpython@fosstodon.org)

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

talkpython.fm/episodes/show/52




Show Original Post


13.10.2025 17:43
r (@r@fed.brid.gy)

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




Show Original Post


13.10.2025 17:43
r (@r@bsky.brid.gy)

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




Show Original Post


13.10.2025 17:05
publickey1 (@publickey1@rss-mstdn.studiofreesia.com)

Python 3.14登場、フリースレッド版正式サポート。実験的JITコンパイラも公式バイナリで利用可能に
publickey1.jp/blog/25/python_3

#publickey1 #プログラミング言語 #Python




Show Original Post


13.10.2025 16:37
treyhunner (@treyhunner@mastodon.social)

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 (pym.dev/unnecessary-else-state)

Many bits of 's syntax are "technically unnecessary" but useful.




Show Original Post


13.10.2025 16:32
treyhunner (@treyhunner@mastodon.social)

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 tip (gripe?) brought to you by an overeager linter rule.




Show Original Post


13.10.2025 15:54
s4mdf0o1 (@s4mdf0o1@piaille.fr)

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 ... ! 🤭 😂




Show Original Post


13.10.2025 15:30
ngate (@ngate@mastodon.social)

🧐 Oh, a on switching to because apparently, typing in isn't extreme enough for some folks. 📜 Who knew all the computer geeks secretly longed to be warriors? Next, we'll get a guide on how in ++ is basically a gateway to becoming a 🥋.
stavros.io/posts/switch-to-juj




Show Original Post


13.10.2025 15:28
deitel (@deitel@mastodon.social)

Join me Tuesday, Oct. 14 for a full day of Python data science, AI and generative AI code: learning.oreilly.com/live-even

@OReillyMedia




Show Original Post


13.10.2025 15:22
mblayman (@mblayman@mastodon.social)

💾 With a web app, data is stored in a database, but we don't directly interact with the database. Instead, we write classes called "models." Learn all about Django models in this article. mattlayman.com/understand-djan




Show Original Post


1 ...1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 ...1560
UP