python

Back Open Paginator
29.11.2025 09:32
habr (@habr@zhub.link)

Магия Python: Почему a = 256 и b = 256 — это один объект, а с 257 это уже не работает?

Python часто называют языком, где «всё просто работает». Но за этой простотой скрываются агрессивные механизмы оптимизации, о которых разработчики часто узнают только в момент отладки странных багов. Сегодня поговорим о том, как CPython управляет памятью для малых целых чисел (почему диапазон выбран именно от -5 до 256?), как работает паттерн Flyweight на уровне ядра языка и почему две одинаковые строки могут иметь разные id. А также разберем неочевидную разницу работы компилятора в интерактивной оболочке (REPL) и при запуске скриптов.

habr.com/ru/articles/971500/

#python #python3 #python_для_начинающих




Show Original Post


29.11.2025 09:28
AbramKedge (@AbramKedge@beige.party)

TL;DR genuinely interested in hearing why use of #Python pip is being deprecated/discouraged.

Had a disastrous #IT day yesterday. Updating my main server led to mysterious cascading failures.

Fortunately, my backup/test server kicked in. It's a bit slower, but functional, allowing me to work on the main and spin up a new instance (I really need to upgrade the OS on Main).

11:30pm I saw that vendor sales reports hadn't been mailed out. I tracked it down to the postmarker #Python package not being installed.

Now what fresh hell is this? All of a sudden I can't install Python packages that haven't been blessed by the Ubuntu package maintainers?

I found the --break-system-packages option (WTH?), and sales reports were delivered by 11:59 (6:59pm Eastern).

But I'd love to know the rationale behind this if anyone knows. Is it "fixing problems that very few people have in a way that breaks many things", just like Snaps?




Show Original Post


29.11.2025 09:01
Dhanrajleela (@Dhanrajleela@mastodon.social)

technologiesinternetz.blogspot

Types of Operators in Python: A Comprehensive Guide





Show Original Post


29.11.2025 08:30
frontenddogma (@frontenddogma@mas.to)

10 Smart Performance Hacks for Faster Python Code, by @didogrigorov (@jetbrains.com):

blog.jetbrains.com/pycharm/202

#python #performance #techniques




Show Original Post


29.11.2025 08:17
reddit_tech_vn_bot (@reddit_tech_vn_bot@mastodon.maobui.com)

Công cụ FIXXER dùng Ollama và qwen2.5-vl để tự động gắn thẻ ảnh RAW, giúp quản lý và sắp xếp ảnh offline. Chạy trên terminal, phù hợp cho nhiếp ảnh gia muốn workflow riêng tư.

#Ollama #AI #Photography #Python #ảnh #trítuệnhântạo #lậptrình

reddit.com/r/ollama/comments/1




Show Original Post


29.11.2025 06:50
SnoopJ (@SnoopJ@hachyderm.io)

Support for PEP 723 (inline script metadata) has landed on pip's main branch thanks to some helpful guidance from the maintainers.

github.com/pypa/pip/commit/369

Here's hoping it'll smooth out some distribution wrinkles for people who have been getting along with just-pip and single-file scripts paired with requirements files 🤞

#Python




Show Original Post


29.11.2025 05:13
veer66 (@veer66@social.vivaldi.net)

Guido van Rossum wanted a language that was easier to use than C, more powerful than shell script, and featured automatic memory allocation.

youtu.be/QXE5rEVlu20

#Python




Show Original Post


29.11.2025 03:49
enep (@enep@mastodon.social)

Python Хороший помощник в рутинной работе





Show Original Post


29.11.2025 03:16
villares (@villares@pynews.com.br)

exploring and idea with #particles that started in class today... Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


29.11.2025 02:13
leobm (@leobm@norden.social)

Eigentliche wollte ich nur meine #python Kenntnisse etwas auffrischen. Der Kurs ist wirklich richtig gut, besser als ich vermutet hätte. Geht an vielen Stellen wirklich richtig genial in die Tiefe. udemy.com/share/102Vn43@G1SV4u




Show Original Post


29.11.2025 01:11
aly (@aly@mastodon.nz)

Tech advice please!

What is a good, mature, up to date WordPress-shaped-thing? I want something open source, that I can host myself, that has a reasonable CMS editing like experience for blogs etc.

I already have hosting, I program in my day job so know my way about a server. Something in the #python world maybe?

Thanks !




Show Original Post


29.11.2025 01:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Databricks is hiring Solutions Engineer - (EMEA Greenfield)

🔧 #python #aws #azure #gcp #sql
🌎 Munich, Germany
⏰ Full-time
🏢 Databricks

Job details jobsfordevelopers.com/jobs/sol
#jobalert #jobsearch #hiring




Show Original Post


1 ...914 915 916 917 918 919 920 921 922 923 924 ...1570
UP