Магия Python: Почему a = 256 и b = 256 — это один объект, а с 257 это уже не работает?
Python часто называют языком, где «всё просто работает». Но за этой простотой скрываются агрессивные механизмы оптимизации, о которых разработчики часто узнают только в момент отладки странных багов. Сегодня поговорим о том, как CPython управляет памятью для малых целых чисел (почему диапазон выбран именно от -5 до 256?), как работает паттерн Flyweight на уровне ядра языка и почему две одинаковые строки могут иметь разные id. А также разберем неочевидную разницу работы компилятора в интерактивной оболочке (REPL) и при запуске скриптов.
https://habr.com/ru/articles/971500/
#python #python3 #python_для_начинающих
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?
https://technologiesinternetz.blogspot.com/2025/11/types-of-operators-in-python.html
Types of Operators in Python: A Comprehensive Guide
#Python #operator #programming

10 Smart Performance Hacks for Faster Python Code, by @didogrigorov (@jetbrains.com):
https://blog.jetbrains.com/pycharm/2025/11/10-smart-performance-hacks-for-faster-python-code/
#python #performance #techniques
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
https://www.reddit.com/r/ollama/comments/1p9idre/using_ollama_qwen25vl_to_autotag_raw_photos_in_a/
Support for PEP 723 (inline script metadata) has landed on pip's main branch thanks to some helpful guidance from the maintainers.
https://github.com/pypa/pip/commit/36987b0c31b97ffb9fb7949ded628e9a6b10c016
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 🤞
Guido van Rossum wanted a language that was easier to use than C, more powerful than shell script, and featured automatic memory allocation.
Python Хороший помощник в рутинной работе

exploring and idea with #particles that started in class today... Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_11_28
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding

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. https://www.udemy.com/share/102Vn43@G1SV4usBrRCnuNuD4RG51dnur-kxuq8koRFXsJZGDqYyhYIlcHaexEQPhgSxag==/
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 !
Databricks is hiring Solutions Engineer - (EMEA Greenfield)
🔧 #python #aws #azure #gcp #sql
🌎 Munich, Germany
⏰ Full-time
🏢 Databricks
Job details https://jobsfordevelopers.com/jobs/solutions-engineer-emea-greenfield-at-databricks-com-aug-13-2025-619e27?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring