If you upgraded to Ubuntu 26.04, have an old Python script that uses multiprocessing (with no threading), and "ps -ef | grep python" suddenly looks like a war and peace manuscript. In 2 minutes Claude will tell you the secret one line to make Python 3.14 behave like Python 3.12 did for you up until now.

Spoiler: multiprocessing.set_start_method('fork')

How does Claude know all these things?

#Python3 #Multiprocessing #Ubuntu26_04 #Claude

Argh!! Python Virtual Environments have virtually ruined me.

For years I have put

#!/usr/bin/python3

at the top of all my robot's Python files and made them executable so I could just type:

./battery.py

Now that won't work and I have to type the python3 or the interpreter won't find any of my site packages that only live in the virtual env.

What is the answer?

#Python3 #VirtualEnvironments #GoPiGo3

Yesterday I learnt that you cannot let json.dump play with zipfile.open. The former expects files opened in text mode, the latter only opens files in binary mode.

I had to mediate this stubborness by an io.TextIOWrapper instance.

#python3

Pandas is one of the most important Python libraries for Data Science, Machine Learning, Analytics, and AI development. This cheat sheet highlights the essential Pandas operations every developer and data professional should know to work efficiently with structured data.

The importing and exporting section focuses on reading and saving datasets from CSV files, Excel sheets, and SQL databases, which is the first step of almost every real world data project. #python #python3 #PythonCommunity

While waiting for my return flight from SNA to AUS, I updated to Python 3.15.0b1 and ran the test suite for pyparsing. Once I fixed the vendored version of typing-extensions in pip (version 26.1.1) that uses the deleted `typing.no_type_check_decorator`, all my unit tests ran successfully. (Haven't successfully created a virtualenv for 3.15t yet...) (using PyCharm 2026.1.2 on Windows 11) #python #python3 #pyconus #python315

Pyrog. Основа для приложения мечты

Признайтесь честно, кто из вас любит рутину? Вы не любите? Вот и я не люблю, поэтому около трёх лет назад я выпустил программный комплекс для ускорения разработки и управления мини-приложениями на Python + PySide6, которые помогают мне в повседневной работе. За время его эксплуатации я обнаружил ряд архитектурных недостатков, которые ухудшали опыт его использования, да и многие возможности, о которых я мечтал не были реализованы. Так или иначе, я нашел в себе силы исправить свои ошибки и реализовать задуманное. Поэтому, если вы, как и я, пишете инструменты на Python или хотите этим заняться, то можете взять на вооружение мой инструмент, он бесплатный и имеет открытый исходный код. Присоединиться к проекту

https://habr.com/ru/articles/1035774/

#python3 #pyside6 #qt #software #software_development #разработка_приложений #автоматизация_рутины #gui #графический_интерфейс #интернационализация

Pyrog. Основа для приложения мечты

Привет, земляне! Спешу к вам с радостной новостью, наконец то я готов представить вашему вниманию обновленную версию программы с открытым исходным кодом для разработки и управления мини-приложениями...

Хабр

A bit of a side project.

Something i wanted to do since the start. Porting #kafx to #python3 using #qt
(It's the synced karaoke effects there)

Got .ass loading, styles, aaaaaaaall the structure and api from scratch, multithread.
Today managed to add ass colors, and lerping. And also stub size animation.
#kafx3 #python

Renders at 7x with 20% cpu usage in 32 threads.

(Happy birthday Zheo)

Выделение одного значащего признака из набора данных с помощью машинного обучения. Используется Apache Spark

В первой части была создана инфраструктура для запуска машинного обучения. Там же была создана БД с данными для использования в примерах. В данной части будет искаться, какой тип файлов вызывает увеличение нагрузки. При этом, зная, какой именно тип файла был указан как вызывающий нагрузку. Будет использоваться машинное обучение в Apache Spark .

https://habr.com/ru/articles/1035962/

#python #python3 #machinelearning #ml #apache_spark

Выделение одного значащего признака из набора данных с помощью машинного обучения. Используется Apache Spark

Описание задачи В первой части была создана инфраструктура для запуска машинного обучения. Там же была создана БД с данными для использования в примерах. В данной части будет искаться, какой тип...

Хабр

Как работают lambda-функции в Python: замыкания, позднее связывание и антипаттерны

Вы всё ещё используете map и filter с лямбдами в 2026 году? Подготовил большой гайд по анонимным функциям в Python: от самого первого lambda x для новичков до разбора байт-кода, замыканий и жестких антипаттернов, за которые бьют по рукам на код-ревью.

https://habr.com/ru/articles/1035918/

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

Как работают lambda-функции в Python: замыкания, позднее связывание и антипаттерны

Часть 1 Что такое анонимная функция и зачем она нужна? В классическом понимании функция — это именованный блок кода. Мы придумываем ей говорящее имя (например, calculate_total_price ), пишем внутри...

Хабр

python3-pyqt6 rejects scoped enums #2404 #python3 #qt

https://askubuntu.com/q/1566851/612

python3-pyqt6 rejects scoped enums

Scoped enums were introduced towards the end of Qt5, and unscoped were deprecated in Qt6 although they were still supported, however after installing python3-pyqt6 on 24.04, I am getting errors with

Ask Ubuntu