🚨 Breaking news! 🚨 A brave soul has distilled the essence of #GPT into a mere 200 lines of #Python, heroically defying the tyranny of libraries and dependencies. Prepare to be dazzled by a script so minimal, it trains on baby names like it's the 19th century 📜—because apparently, #efficiency is for the weak. 🤦♂️💡
https://growingswe.com/blog/microgpt #BreakingNews #Minimalism #HeroicCoding #HackerNews #ngated
Release candidate 10.8.2.rc0 of passagemath, the comprehensive #OpenSource #Mathematics system in #Python, the pip-installable modularized fork of #SageMath.
github.com/passagemath/...
Release passagemath-10.8.2.rc0...
Release candidate 10.8.2.rc0 of passagemath, the comprehensive #OpenSource #Mathematics system in #Python, the pip-installable modularized fork of #SageMath.
github.com/passagemath/...
Release passagemath-10.8.2.rc0...
3/3 #BSD offers libcitrus. #musl C library includes support and gettext-tiny makes use of musl to provide a lightweight alternative for embedded systems. There are #C, #Perl and #Python versions of msgfmt. I'm learning more about the format by writing my own msgfmt utility. #DFD2026
I just released ryl 0.3.5 to PyPi and Crates.io - (now tested against several larger repos that were heavy yamllint users) and resolved several bugs and behaviour discrepancies with yamllint. #python #rust #yaml

Python Tip #60 (of 365):
Be cautious of "if" expressions in comprehensions
An "if" expression in a "for" loop can look confusing:
sanitized = [n if n > 0 else 0 for n in counts]
That "else" isn't part of the comprehension. It's just inline "if" expression.
I find this a bit more readable:
sanitized = [
n if n > 0 else 0
for n in counts
]
But that could still be misunderstood.
🧵(1/2)
Hej, leci z nami ktoś z doświadczeniem z łączeniem #SQLite i #Python 'a?
🚀 Pyrefly: the trailblazing type checker that'll make your #IDE shine like a supernova! If you're eagerly waiting to compare empty containers while flying through type hints at light speed, #Pyrefly has got you covered. 💫 Who knew #debugging #Python could be this thrilling? 🙄
https://pyrefly.org/blog/container-inference-comparison/ #TypeChecker #Innovation #HackerNews #ngated
Python Type Checker Comparison: Empty Container Inference
https://pyrefly.org/blog/container-inference-comparison/
#HackerNews #Python #Type #Checker #Empty #Container #Inference #Type #Checking #Programming #Tools
Python Tip: pathlib > os.path
from pathlib import Path
config = Path.home() / '.config' / 'app.json'
if config.exists():
data = config.read_text()
pathlib provides an object-oriented filesystem API. Cleaner than os.path string juggling.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Python Tip: any() and all()
nums = [2, 4, 6, 8]
all_even = all(n % 2 == 0 for n in nums) # True
has_big = any(n > 5 for n in nums) # True
any() and all() short-circuit on generators. Elegant replacement for loop-based checks.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
The Internet Last Week
* US/Israel Attacks on Iran Internet effects
https://infosec.exchange/@ProjectAinita/116147653707149458
https://noc.social/@cloudflareradar/116151293471289304
https://mastodon.social/@IODA/116148656276570120
https://infosec.exchange/@dougmadory/116148738148192917
* NDSS Symposium 2026
https://www.ndss-symposium.org/ndss2026/
* Various US DoD route withdrawals
https://stat.ripe.net/widget/routing-history#resource=360&starttime=2026-02-22
https://stat.ripe.net/widget/routing-history#resource=647&starttime=2026-02-22
https://bgp.he.net/AS6034#_prefixes
https://stat.ripe.net/widget/routing-history#resource=34369&starttime=2026-02-22
* Python infrastructure outage
https://status.python.org/incidents/r47c43jw19zq
#Iran #NDSS2026 #USDoD #Python