Six months ago, I got a note on an MR bluntly directing me to use "from X import Y" for _everything_.
I pushed back for various reasons - our style guide doesn't explain why it helps performance and readability, it makes it harder to search for code uses, it makes mocks harder because, and it contradicts the Zen of #Python.
I asked for an explanation. The reviewer said they'd get back to me.
They have not gotten back to me.
If you would like to establish an anonymous channel with ITN, visit https://fifthdimensionnews.substack.com/about for how to start an #anonymous #chat with #Cwtch or #Onionshare via #Signal
First, use Signal to send Cwtch onion address
(in #Go but client is more user friendly and no Javascript)
and/or Onionshare onion address
(in #Python and updated across platforms but requires JS) and private authorization key or vice versa
and to send time for chat
[date, hour UTC-0/GMT]
Signal inbox is checked at least every few days.
then, metadata resistant chat with #Tor onion E2EE can commence at scheduled time
http://docs.lldan5gahapx5k7iafb3s4ikijc4ni7gx5iywdflkba5y2ezyg6sjgyd.onion/2.6.3/en/features.html#chat-anonymously
https://onionshare.org
Forget rewriting all the CLI commands in rust, let's rewrite them in #python
- partially done from a quick search of pypi
- would make bandit happy (bandit hates subprocess)
- screaming, blazing, lightspeed fast*
* compared to bash
New 📚 Release! Practical Pydantic: The Missing Guide to Data Validation in Python by Nuno Bispo
Bad data breaks good code.
Find it on Leanpub!
Link: https://leanpub.com/practical-pydantic
#books #ebooks #python #datascience #programming #coding

World3 sur GitHub - Implémentation en Python de World3
https://loma.ml/display/373ebf56-1068-d313-a118-845100869980
👨🏫🎓 Behold the riveting debate: #Fortran vs. #Python for teaching—because nothing screams "modern education" like a language from the 1950s. 😂💻 Dr. Loiseau heroically tries to revive Fortran's glory days, while deftly ignoring that students are more likely to struggle with its syntax than the actual math. 📉💥
https://loiseaujc.github.io/posts/blog-title/fortran_vs_python.html #Education #Debate #Coding #Humor #HackerNews #ngated
Is Fortran better than Python for teaching basics of numerical linear algebra?
https://loiseaujc.github.io/posts/blog-title/fortran_vs_python.html
#HackerNews #Fortran #Python #NumericalLinearAlgebra #Education #Programming
TIL that in a PEP 440 "local" version, you cannot repeat separators:
```python
>>> from packaging.version import Version
>>> Version("25.09.23+hello_world") # OK
<Version('25.9.23+hello.world')>
>>> Version("25.09.23+hello__world") # not OK
...
packaging.version.InvalidVersion: Invalid version: '25.09.23+hello__world'
```
This cursed knowledge comes to me by the interaction of a branch with `libstdc++6`¹ in the name and some code that generates a version including the branch in the local version. The latter normalizes `++` to `__` instead of `_` which would be more reasonable.
At least it's an easy patch to write.
---
¹ I am, unfortunately, still thinking about/dealing with the upstream's vendoring of `libstdc++6`
Just in case any human used it, I'm closing https://guix.deltaedro.org/. The service will cease operation on October 1st, 2025.
It was a service meant for humans but only robots seemed to be using it. It's been a short but fun project written in Python+Django on Guix System. Practical things were learned from it.
Suerte o/
#guix #software #python #django
🌘 Fortran 是否優於 Python 教學數值線性代數基礎?
➤ 以初學者為中心的程式語言選擇:Fortran 與 Python 在科學計算入門的對決
✤ https://loiseaujc.github.io/posts/blog-title/fortran_vs_python.html
本文探討在大學初階科學計算課程中,使用 Fortran 或 Python 教學數值線性代數基礎的優劣。作者認為,對於程式經驗有限的工程學生而言,強型別語言 Fortran 在教學上可能比 Python 提供更佳的學習體驗。儘管 Python 的 NumPy/SciPy/Matplotlib 生態系功能強大且能激發學習樂趣,但直接調用 `np.linalg.solve(A, b)` 缺乏對演算法原理的深入理解。作者透過 Jacobi 方法的實作範例,指出 Python 的動態型別和語法彈性,雖然方便,卻可能導致學生在將數學演算法轉化為可執行程式碼時遭遇更多語法問題和誤解。相較之下,Fortran 的嚴謹性有助於學生更專
#科學計算 #程式教學 #數值線性代數 #Fortran #Python
Is Fortran better than Python for teaching basics of numerical linear algebra?
https://loiseaujc.github.io/posts/blog-title/fortran_vs_python.html
Unveiling siotls, a sansio pure #python implementation of #TLS 1.3.
It supports various crypto backends, #openssl and #hacl at the moment.
This is my first time making an open-source library for a wider audience, feedback is welcome, please be kind 🥹
https://codeberg.org/drlazor8/siotls
https://siotls.readthedocs.io/en/stable/index.html