python

Back Open Paginator
06.08.2025 12:18
GripNews (@GripNews@mastodon.social)

🌘 Python 效能迷思與童話
➤ 揭開 Python 效能的真相:從迷思到未來的可能性
lwn.net/SubscriberLink/1031707
本文探討了 Python 效能的常見迷思,作者 Antonio Cuni 駁斥了「Python 緩慢」或「只需將關鍵部分重寫為 C/C++ 或 Rust」等觀點,並深入分析了 Python 效能受限的真正原因,指出記憶體管理是關鍵瓶頸。他同時介紹了一項名為 SPy 的早期專案,有望實現極速 Python。此外,文中也探討了靜態型別的侷限性,以及 JIT 編譯器帶來的複雜性與難以預測性。
+ 寫得真好,終於有人把 Python 效能那些聽起來很厲害但其實沒什麼用的說法一次說清楚了。
+ SPy 聽起來很有潛力,希望這個專案能成功,讓 Python 在效能上有突破。




Show Original Post


06.08.2025 12:15
s4mdf0o1 (@s4mdf0o1@piaille.fr)

Je me suis fait un SpeechToText Python
Mot clé de déclenchement (comme "OK Google") : "Marvin"
J'écoutais Valérie M-D qui dit : "... dans les aires marines".
Mon script comprend "Marvin".
Il dit alors : "yep what's up" (retour pour signaler l'écoute et le début d'enregistrement)
Mais comme j'enregistre pas (silence relatif au micro), il répète ce que je lui ai fait préalablement interpréter (et qui était juste) :
donc il dit, sur un ton monocorde avec espeak-ng -v mb-fr1 :
"Quelle est la différence entre un canard ? La longueur des pattes, surtout la gauche"
🤭 🤣 🤣 🤣

#Python #LogiqueAbsurde #IA #SpeechToText #OpenAIWhisper




Show Original Post


06.08.2025 12:07
PyConUK (@PyConUK@fosstodon.org)

✨📝 New blog post: The UKPA needs you! ✨📝

The UK Python Association (UKPA) is the charity behind PyCon UK — making the conference happen and supporting #Python education & community projects 🐍💚

The UKPA exists for the Python community, and they want you to be involved! You can:
🔹 Become a Member
🔹 Apply to be a Trustee

Find out more:
📝 Blog post: 2025.pyconuk.org/2025/08/the-u
🌐 UKPA: uk.python.org/
📅 Trustee application deadline: 21/08/2025

#PyConUK2025 #UKPA #techcommunity #development




Show Original Post


06.08.2025 12:06
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Python performance myths and fairy tales

lwn.net/SubscriberLink/1031707




Show Original Post


06.08.2025 11:59
neutrinoceros (@neutrinoceros@ieji.de)

I love APIs that feel like magic… almost as much as I dislike their (usually) gory, unmaintainable implementations.
#rustlang’s match constructs (and #Python’s pattern matching) allow me to create the former without the latter.
Learning Rust has completely changed how I approach design, for the better, I hope.




Show Original Post


06.08.2025 11:50
content (@content@socialhome.network)

Django bugfix release issued: 5.2.5

Today we've issued the 5.2.5 bugfix release.

The release package and checksums are available from our downloads page, as well as from the Python Package Index.

The PGP key ID used for this release is : 3955B19851EA96EF

https://www.djangoproject.com/weblog/2025/aug/06/bugfix-releases/

#django #python #webdev




Show Original Post


06.08.2025 11:39
yvan (@yvan@toot.ale.gd)

The Cambridge #Python User Group seems to be dead... is there any current equivalent in the #Cambridge (UK) area?

I am aware of the #Django social group, not sure I dare step near that at the moment as I'll probably just end up trolling them. 😂 (Though IMO my current main Django problem has "using it wrong" at the root of things.)




Show Original Post


06.08.2025 11:24
eliocamp (@eliocamp@mastodon.social)

Ok, to the rescue. Add this to your .envrc to fix the environment on your terminal and on .

```
conda activate whatever-environment

mkdir -p .vscode
cat > .vscode/settings.json << EOF
{
"python.defaultInterpreterPath": "$(which python)",
"python.terminal.activateEnvironment": false,
}
EOF
```




Show Original Post


06.08.2025 10:35
lobsters (@lobsters@mastodon.social)

Python performance myths and fairy tales via @aks lobste.rs/s/6wjkre
lwn.net/SubscriberLink/1031707




Show Original Post


06.08.2025 10:02
habr (@habr@zhub.link)

10 удобных конструкций Python

Разбираем 10 удобных конструкций Python, которые помогают писать код короче и понятнее: list и dict comprehension, zip, enumerate, f-строки, Pathlib и другие полезные приёмы. Особенно полезно начинающим разработчикам.

habr.com/ru/articles/932344/

#python #programming #программирование #однострочники #code_style #начинающим




Show Original Post


06.08.2025 09:59
ax6761 (@ax6761@freeradical.zone)

Hey #Debian 12 #Python "pyflakes" users, what is the difference between "python3-pyflakes/stable" & "pyflakes3/stable" packages? I got those via "apt search pyflakes".

Same:
- Version
- Homepage
- Source
- Maintainer
- APT-Sources
- Description

Difference is of the size: the latter is fatter which additionally depends on "python3-pkg-resources".

If version, homepage would have been different, choice would have been easier.




Show Original Post


06.08.2025 09:16
hackernoon (@hackernoon@mas.to)

One of the first barriers a developer is facing during the initial project initialization is setting a unit tests configuration and a basic set of unit tests. hackernoon.com/function-level- #python




Show Original Post


1 ...1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 ...1546
UP