Whoa, I just came across pyenv[.]net and it looks like an LLM-generated SEO-stealing site that purports to have downloadable copies of pyenv.
Has anyone else seen this?
“This is really the most clear-cut use of a class in Python: when you have data and functionality that clearly belong together.”
Read more 👉 https://pym.dev/when-are-classes-used/
Python vs JS Ticketing Replay Gate
Same ticket purchase, zero duplicate seats.
#python #javascript #viralcoding #codecomparison #idempotency #retries #payments #backendsafety #ticketing #events #replay #reliability
https://www.youtube.com/watch?v=GqGezI9ubQo
lgtvremote-cli v1.1.1 is out - control your LG TV from the command line.
New in this release:
- lgtv power-status - check if your TV is on/off (great for scripts and automations)
- lgtv livetv - switch to live TV with optional --channel flag
- lgtv channels - list available channels as JSON
- --tv flag now accepts TV names, not just IPs (lgtv --tv "Living Room" off)
Install/upgrade: pip install --upgrade lgtvremote-cli
https://github.com/griches/lgtvremote-cli
#LGTV
#CLI
#Python
#HomeAutomation
#OpenSource
#webOS
@xahteiwi I'm not counting the implicit call to basicConfig() that happens when the first log message is emitted. I'd consider that to be done by the logging module, not by the library, and in any case it has to be done if nothing else set up a logging destination by that point, since the next best alternative is disabling logging entirely. That one is okay.
Aside from that, though, my contention is that if a library tries to configure logging, using an environment variable or otherwise, that's at best useless and at worst actively harmful to its usability. It's not a "might as well" thing.
On cherche un stagiaire équivalent Master 2 pour de la géomatique et traitement d'image.
Le coeur du travail est de la programmation Python avec GRASS GIS.
#stage #géomatique #traitementDImage #Python #GRASSGIS #jeRecrute
1300 combinations of 3 connected line segments from a 3x3 grid of points.
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_03_17 #Processing #Python #py5 #CreativeCoding

@xahteiwi My point is, it's the application that should do that. Library code has no business calling logging.basicConfig().
One I guess annoyance in how my brain handles code refactoring is, as more features get added, previous assumptions go away. I used to only accept PDFs for all modules, then I added sometimes accepting images, so I added a "module_can_accept_images" boolean (via a list I "for in"). Really what I should have done is say "these are the types of files/file extensions this module can accept" and "for in" that list. Definitely one of those hindsight moments. #programming #coding #python
When introspecting a #Python object, I sometimes use a comprehension to remove dunder method noise from dir(...) output:
>>> numbers = [2, 1, 3]
>>> public = [name for name in dir(numbers) if not name.startswith("_")]
>>> public
['append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
This removes MANY underscore-prefixed methods:
>>> len(dir(numbers)) - len(public)
37
Anyone know if something like dir(..., public=True) has ever beet proposed?
🌗 Python 3.15 的即時編譯器(JIT)重回正軌
➤ 從開發困境到效能飛躍:技術、機運與社羣協作的勝利
✤ https://fidget-spinner.github.io/posts/jit-on-track.html
經歷了 3.13 與 3.14 版本效能不如預期的低谷,Python 3.15 的即時編譯器(JIT)開發終於迎來重大突破,並提前達成效能目標。作者歸功於社羣主導的協作模式,將複雜的 JIT 系統拆解為可控的模組,成功吸引並留住了多位開發者。此外,團隊透過「追蹤錄製(Trace Recording)」與「雙重分派(Dual Dispatch)」等關鍵技術決策,加上對於引用計數消除的優化,讓 JIT 在 macOS 與 Linux 平臺上展現了顯著的執行效率提升。這是一場集結社羣力量與機遇的成功實驗。
+ 看到 Ken 提到當初對專案的懷疑,真的很有共鳴。開源軟體要維持像 CPython 這種龐大專案的效能優化,光靠熱情是不夠的,團隊拆解任務的策略非常值得學習。
+ 「雙重分派」那段技術解析很有趣!有時候
#Python #程式語言 #軟體工程 #開發日誌
🐍 BREAKING: Python's #JIT is faster! Well, sort of... if you squint hard enough 📉. They hit their "modest" goals early, which means a thrilling range of #performance from "please stop" to "barely noticeable" 🚀.
https://fidget-spinner.github.io/posts/jit-on-track.html #Python #News #Faster #Programming #Tech #Update #HackerNews #ngated