Python Tip: functools.lru_cache
from functools import lru_cache
@lru_cache(maxsize=128)
def fib(n):
if n < 2: return n
return fib(n-1) + fib(n-2)
fib(100) # instant, not billions of calls
lru_cache memoizes function results. Recursive Fibonacci goes from O(2^n) to O(n) with one...
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
🌗 針對 PyPy 專案維護狀態於 uv 文件中加入警告資訊
➤ 透過文檔更新引導開發者避開已逐漸過時的技術方案
✤ https://github.com/astral-sh/uv/pull/17643
由於跡象顯示 PyPy 專案已逐漸停止活躍開發(例如 NumPy 已停止支援),為了避免開發者誤以為該 Python 發行版仍獲得良好維護與支援,`uv` 工具的開發者 konstin 決定在官方文件中加入明確的警示備註。此 Pull Request 最終將原本重複的警告訊息精簡為單一條目,並已順利合併至 `uv` 主分支,提醒使用者 PyPy 目前僅支援至 Python 3.11 版本,後續將透過 `uv` 的更新版本發布此資訊。
+ 雖然 PyPy 曾經紅極一時,但看到社羣開始明確標註其維護狀態,對維護專案的穩定性來說確實是負責任的做法。
+ 贊同這項變更。很多開發者可能沒注意到 NumPy 那邊的動態,及早透過 `uv` 這類現代化工具發出提醒可以少掉很多除錯的麻煩。
#開發工具 (Developer Tools) #Python 生態系統 #開源維護
Season 1 Lesson 7 Part 5 - Your First Steps - File Paths and the Annoying - Escape Characters in Pythons #pythonprogramming #softwaredeveloper #python #codingtutorial #jupyternotebook #dataanalysis #dataengineer #learncoding #pythoncode
Aurora is hiring Senior Software Engineer - Compute
🔧 #golang #python #typescript #react #node #api #aws #kubernetes #awss3 #seniorengineer
🌎 Mountain View, California
⏰ Full-time
🏢 Aurora
Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-compute-at-aurora-tech-jan-29-2026-416b07?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring
Find the sketch-a-day archives and tip jar at: https://abav.lugaralgum.com/sketch-a-day
Code for this sketch at: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_03_07 #Processing #Python #py5 #CreativeCoding
Semantra is an open-source tool for searching documents by meaning, not keywords. It aims "to make running a specialized semantic search engine easy, friendly, configurable, and private/secure." Developed by @dylan [NYTimes]
https://github.com/freedmand/semantra
(Needs #Python installed)
#NICAR26
Bitpanda is hiring Data Engineer, Python
🔧 #python #aws #azure #cicd #gcp #kafka #kubernetes #sql #terraform
🌎 Barcelona, Spain
⏰ Full-time
🏢 Bitpanda
Job details https://jobsfordevelopers.com/jobs/data-engineer-python-at-bitpanda-com-dec-9-2025-3268f5?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring
I saw a TIL post on bsky today about using '/' with pathlib.Path's. Some other neat things recently added to #python
- itertools.batched (3.12)
- accessing re.Match groups using [] notation (faster than calling group()) (3.6)
- 1_000_000 is a legal syntax for 1000000 (3.6)
- command-line access to stdlib modules (python -m <name>)
- uuid (3.12)
- json (3.14)
- random (3.13)
- sqlite3 (3.12)
- http.server (3.4)
- f-strings (3.6)
- true multithreading (3.14)
- contextlib.chdir (3.11)
These days writing a new library is sometimes faster than finding existing ones. So, I wrote a tiny cool sentinel Maybe[T] in #python
https://github.com/Fatal1ty/maybe-missing
Python vs JS Receipt Replay Vault: Double-Charge Shield
Repeat receipts get blocked before refunds explode.
#python #javascript #viralcoding #codecomparison #idempotency #retries #payments #backendsafety #doublecharges #refundstorms #fintech
https://www.youtube.com/watch?v=50QdJQB2724
I remember being once asked, in good faith, what dependency injection frameworks are the most popular in #python. A decade later, I still don't know the answer.
Ich habe dieses #vibecoding einmal ausprobiert und habe eine messy #Python script da rein geworfen und verlangt das einmal ordentlich und mit logging zu überarbeiten...
Das ich es danach nicht mehr verstanden habe mag an meinem Skill issue liegen aber das es nicht mehr funktioniert hat fand ich schon unfair