Planet Python RSS
208 subscribers
18.6K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python GUIs: Change color in QProgressBar delegate — How to dynamically change QProgressBar colors in a QTableView delegate

Link: https://www.pythonguis.com/faq/change-color-in-qprogressbar-delegate/


How can I change the color of a QProgressBar delegate in a QTableView when a process starts or stops? I'm using a delegate to show an indeterminate progress bar (with setRange(0, 0)), and I want it t
TestDriven.io: Taking Website Screenshots with Django, Celery, and Playwright

Link: https://testdriven.io/blog/django-website-screenshots/

This tutorial looks at how to build a Django app that takes website screenshots using Playwright and Celery.
Python Software Foundation: Joshua Mcshannon Joins the PSF as Infrastructure Engineer

Link: https://pyfound.blogspot.com/2026/11/joshua-mcshannon-joins-psf-as.html


The Python Software Foundation (PSF) is excited to announce our newest staff
member and Infrastructure Engineer,
Joshua Mcshannon, reporting to
Director of Engineering Jacob Coffee. Joshua br
Python Morsels: Unnecessary syntax in Python

Link: https://www.pythonmorsels.com/unnecessary-syntax/

Unnecessary syntax in Python isn't always unhelpful. An explicit return None, an else, a keyword argument, or a trailing comma can make your code more readable.


Table of contents

Return None
An els
Graham Dumpleton: A first look at Muru

Link: https://grahamdumpleton.me/posts/2026/11/a-first-look-at-muru/

In my last post I talked about where Muru came from and what I want it to be, but didn't show it doing anything. Time to fix that.
Muru has three ways of running an application. There is a development
LernerPython blog, from Reuven Lerner: Python 3.15 list unpacking: Flattening a nested list

Link: https://lernerpython.com/2026/11/02/python-3-15-list-unpacking-flattening-a-nested-list/


Want to unroll a nested list in Python 3.15?
x = [[10, 20, 30], [40, 50, 60], [70, 80]]
Use a nested list comprehension:
[n
for sublist in x
for n in sublist]
Or use the new unpacking syntax:
[*n f
LernerPython blog, from Reuven Lerner: Python set comprehension: Unique items from nested iterables

Link: https://lernerpython.com/2026/11/04/python-set-comprehension-unique-items-from-nested-iterables/


In Python 3.15, get the unique elements in a list of iterables with the new in-comprehension unpacking syntax to create a set comprehension:
x = [[10, 20], [20, 30, 40], [40, 50, 60]]
{*n for n in x}
Python Software Foundation: How the Python ecosystem responded to the eMudhra intermediate compromise

Link: https://pyfound.blogspot.com/2026/11/how-python-ecosystem-responded-to.html


The news of the eMudhra Intermediate CA compromise was published on October 20th, 2026. Responding to an incident like a Certificate Authority (CA) compromise at an ecosystem-scale is far from “routi
Glyph Lefkowitz: Why You Should Care About The Political Project of Twisted

Link: https://blog.glyph.im/2026/11/the-project-of-twisted.html

Twisted was originally the network component of a
text-based role-playing game engine. In the late 90s when it was first
developed, the idea of a video game being able to send you actual emails and
i
LernerPython blog, from Reuven Lerner: Python 3.15 comprehension unpacking: Why you can’t transform items

Link: https://lernerpython.com/2026/11/05/python-3-15-comprehension-unpacking-why-you-cant-transform-items/


The comprehension-unpacking syntax in Python 3.15 is great, but you cannot transform the unpacked elements.
Given:
[[10, 20, 30], [40, 50, 60], [70, 80]]
We can get the individual numbers, but cannot
Mike Driscoll: An Intro to Python Logging Handlers (Video)

Link: https://blog.pythonlibrary.org/2026/11/06/12823/

Learn about Python’s log handlers, part of the built-in logging module, in this video.

This video is a part of my Python Logging Video Course. Check it out today!
The post An Intro to Python Logging
Core Dispatch: Core Dispatch #12

Link: https://coredispatch.xyz/editions/12

Welcome back to Core Dispatch! This edition covers October 9 through November 6,
2026. Python 3.16.0 alpha 1
is out, with alpha 2 due this Tuesday, November 10.
October kept the release team busy: we
"Michael Kennedy's Thoughts on Technology": Catch the import. Name the culprit. Keep threads free: Introducing gilguard

Link: https://mkennedy.codes/posts/catch-the-import-name-the-culprit-keep-threads-free-introducing-gilguard/


TL;DR: gilguard is a tiny, zero-dependency package for free-threaded Python (3.13t, 3.14t, 3.15t). Import it first. If any later import quietly turns the GIL back on, you get an error naming the exte
Graham Dumpleton: Muru: looking inside the workers

Link: https://grahamdumpleton.me/posts/2026/11/muru-looking-inside-the-workers/

In a first look at Muru I made a point of the access log separating how long a request waited for a worker from how long it spent in the application. That tells you where a slow request lost its time,
LernerPython blog, from Reuven Lerner: Pandas 3.1 `select` method: Retrieving specific columns

Link: https://lernerpython.com/2026/11/06/pandas-3-1-select-method-retrieving-specific-columns/


Want to retrieve specific columns from your Python Pandas data frame? In the past, you would say
df[['x', 'y']]
But now, with version 3.1, you can use the “select” method:
df.select('x', 'y')
The pos