開発を効率化するPython自動整形ツール:`flake8`と`Black`
https://qiita.com/KivoraX/items/452a72fc37b85ff0b6b7?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
I love it when you find the right algorithm. I've been working on a #Python project to cover a crossword grid with Tetris blocks, and I used evolutionary search, because I couldn't think of anything better. Then recently, I learned about Knuth's dancing links and exact cover algorithm. I even found a couple of Python implementations.
The new algorithm dropped my search time from hours to milliseconds.
https://github.com/miniexact/miniexact
Some tips on implementing tech hangs.
@brettcannon's "came for the language and stayed for the community" was quoted by @LauraLangdon and also discussed by folks during at least one of the breaks.
💗 This is a great community #Python #PyBeach

🌗 為何今日的 Python 開發者擁抱型別提示
➤ 擁抱漸進式型別系統,提升 Python 程式碼品質與可維護性
✤ https://pyrefly.org/blog/why-typed-python/
Python 的彈性使其廣受歡迎,尤其是在 AI 和數據科學領域。然而,隨著專案規模擴大並進入生產環境,動態型別的潛在風險也隨之增加。Python 3.5 引入的 PEP 484 透過型別提示,為 Python 帶來了漸進式的靜態型別系統。開發者可以逐步添加型別註釋,利用工具在開發早期捕捉錯誤,提高程式碼的可讀性和可維護性,並協助專案從概念驗證順利過渡到生產級應用。
+ 這篇文章解釋得很好,我一直覺得 Python 的動態型別雖然方便,但大型專案真的容易出錯。現在終於瞭解 PEP 484 的重要性了!
+ 太好了!我正想導入型別提示,這篇文章正好解答了我很多疑問,特別是關於如何逐步採用,不會影響現有程式碼。
#Python #型別提示 #PEP 484
Why Today's Python Developers Are Embracing Type Hints
https://pyrefly.org/blog/why-typed-python/
#HackerNews #Python #Type #Hints #TypeScript #Developer #Community #Programming #Best #Practices
Why Today's Python Developers Are Embracing Type Hints
https://pyrefly.org/blog/why-typed-python/
#Python is for artists too!
I made some #Python #numpy, #shapely, #trimesh & #py5bot stickers!
PS: I asked the PSF to check if the logos were alright: "you can change the colors and add thing inside, but not change the shape or position of the snakes". So I had to change my original Python reading club logo...

Python Basics https://leanpub.com/b/pythonbasics by Michael Driscoll is the featured bundle of ebooks 📚 on the Leanpub homepage! https://leanpub.com #Python #ComputerProgramming #books #ebooks
Get Python 101 (2nd Edition) and its sequel, Python 201: Intermediate Python
Find it on Leanpub!
I recorded a video...
Generating mandelbrot sets with Toad and Gemini CLI!
https://www.youtube.com/watch?v=TzBLW2eFmag
import numpy
import numpy as np
x = np.array(42)
print("x: ", x)
print("Der Typ von x:", type(x))
print("Die Dimension von x:", np.ndim(x))
Übungscode #python des Tages.
Ich lerne unter anderem mit dem Buch Numerisches Python, habe den Code nach Buchvorlage abgeschrieben.
Resources for creating #Python packages

A PSA to use pyproject.toml instead of setup.py for #Python project metadata 📣
