python

Back Open Paginator
24.09.2025 01:12
yantor3d (@yantor3d@mas.to)

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.




Show Original Post


24.09.2025 00:33
indietechnews (@indietechnews@flipboard.social)

If you would like to establish an anonymous channel with ITN, visit fifthdimensionnews.substack.co 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

docs.lldan5gahapx5k7iafb3s4iki
onionshare.org




Show Original Post


24.09.2025 00:32
mistersql (@mistersql@mastodon.social)

Forget rewriting all the CLI commands in rust, let's rewrite them in

- partially done from a quick search of pypi
- would make bandit happy (bandit hates subprocess)
- screaming, blazing, lightspeed fast*

* compared to bash




Show Original Post


23.09.2025 23:45
leanpub (@leanpub@mastodon.social)

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: leanpub.com/practical-pydantic





Show Original Post


23.09.2025 23:39
display (@display@loma.ml)

World3 sur GitHub - Implémentation en Python de World3

loma.ml/display/373ebf56-1068-




Show Original Post


23.09.2025 22:58
ngate (@ngate@mastodon.social)

👨‍🏫🎓 Behold the riveting debate: vs. 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. 📉💥
loiseaujc.github.io/posts/blog




Show Original Post


23.09.2025 22:58
h4ckernews (@h4ckernews@mastodon.social)

Is Fortran better than Python for teaching basics of numerical linear algebra?

loiseaujc.github.io/posts/blog




Show Original Post


23.09.2025 22:51
SnoopJ (@SnoopJ@hachyderm.io)

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`

#Python




Show Original Post


23.09.2025 22:27
luis_felipe (@luis_felipe@mastodon.online)

Just in case any human used it, I'm closing 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




Show Original Post


23.09.2025 22:20
GripNews (@GripNews@mastodon.social)

🌘 Fortran 是否優於 Python 教學數值線性代數基礎?
➤ 以初學者為中心的程式語言選擇:Fortran 與 Python 在科學計算入門的對決
loiseaujc.github.io/posts/blog
本文探討在大學初階科學計算課程中,使用 Fortran 或 Python 教學數值線性代數基礎的優劣。作者認為,對於程式經驗有限的工程學生而言,強型別語言 Fortran 在教學上可能比 Python 提供更佳的學習體驗。儘管 Python 的 NumPy/SciPy/Matplotlib 生態系功能強大且能激發學習樂趣,但直接調用 `np.linalg.solve(A, b)` 缺乏對演算法原理的深入理解。作者透過 Jacobi 方法的實作範例,指出 Python 的動態型別和語法彈性,雖然方便,卻可能導致學生在將數學演算法轉化為可執行程式碼時遭遇更多語法問題和誤解。相較之下,Fortran 的嚴謹性有助於學生更專




Show Original Post


23.09.2025 22:12
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Is Fortran better than Python for teaching basics of numerical linear algebra?

loiseaujc.github.io/posts/blog




Show Original Post


23.09.2025 21:16
drlazor8 (@drlazor8@mastodon.social)

Unveiling siotls, a sansio pure implementation of 1.3.

It supports various crypto backends, and at the moment.

This is my first time making an open-source library for a wider audience, feedback is welcome, please be kind 🥹

codeberg.org/drlazor8/siotls
siotls.readthedocs.io/en/stabl




Show Original Post


1 ...1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 ...1556
UP