Planet Python RSS
218 subscribers
16.7K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
PyCoder’s Weekly: Issue #677: __dict__, Streamlit, Boolean Expressions, and More (April 15, 2025)

Link: https://pycoders.com/issues/677

#677 – APRIL 15, 2025 View in Browser » Using Python’s .__dict__ to Work With Attributes In this tutorial, you’ll dive deeper into the .__dict__ attribute in Python objects. This attribute is a
Python Morsels: Practical uses of sets

Link: https://www.pythonmorsels.com/practical-uses-of-sets/

Sets are unordered collections of values that are great for removing duplicates, quick containment checks, and set operations.



Table of contents

What are sets?
Sets are like dictionaries without v
Real Python: Quiz: How to Exit Loops Early With the Python Break Keyword

Link: https://realpython.com/quizzes/python-break/

In this quiz, you’ll test your understanding of the Python break statement.
This keyword allows you to exit a loop prematurely, transferring control to the code that follows the loop.

[ Improve Your
PyCharm: PyCharm, the Only Python IDE You Need

Link: https://blog.jetbrains.com/pycharm/2025/04/unified-pycharm/

Estimated reading time: 3 minutes

PyCharm is now one powerful, unified product! Its core functionality, including Jupyter Notebook support, will be free, and a Pro subscription will be available with
PyCharm: PyCharm 2025.1: Unified PyCharm, Free AI Tier, Junie Release, and More!

Link: https://blog.jetbrains.com/pycharm/2025/04/pycharm-2025-1/


PyCharm 2025.1 brings major updates to improve your development experience.
PyCharm is now a unified product, combining PyCharm Professional and Community Edition. Version 2025.1 also brings a free A
Real Python: How to Exit Loops Early With the Python Break Keyword

Link: https://realpython.com/python-break/

In Python, the break statement lets you exit a loop prematurely, transferring control to the code that follows the loop. This tutorial guides you through using break in both for and while loops. You’l
Django Weblog: Run your tests against Django's main!

Link: https://www.djangoproject.com/weblog/2025/apr/17/run-your-tests-against-django-main/

This is the blog version of a talk! If you prefer, watch the recording on YouTube:


Sage Abdullah - Run your tests against Django’s main! - Django London Meetup



Django is known for its
PyCon: Community Organizer Summit and PSF & Meetups Discussion

Link: https://pycon.blogspot.com/2025/04/community-orgs-and-meetups.html

Calling all community organizers! We want to sit down together and share what’s going well, what new tricks we’ve learned, and what’s been challenging in the area of organizing Python and Python adjac
Everyday Superpowers: Preventing painful coupling

Link: https://everydaysuperpowers.dev/articles/preventing-painful-coupling/

This is the second entry in a five-part series about event sourcing:Why I Finally Embraced Event Sourcing—And Why You Should TooWhat is event sourcing and why you should carePreventing painful couplin
Glyph Lefkowitz: Stop Writing `__init__` Methods

Link: https://blog.glyph.im/2025/04/stop-writing-init-methods.html

The History
Before dataclasses were added to Python in version 3.7 — in June of 2018 — the
__init__ special method had an important use. If you had a class
representing a data structure — for example
Daniel Roy Greenfeld: TIL: webbrowser library

Link: https://daniel.feldroy.com/posts/til-2025-04-webbrowser-library

Python comes with webbrowser, a library for opening webbrowsers to specific pages such as this one.
>>> import webbrowser
>>> url = 'https://daniel.feldroy.com/'
>>> webbrowser.open(url)
Django Weblog: See you at PyCon US in Pittsburgh!

Link: https://www.djangoproject.com/weblog/2025/apr/18/see-you-at-pycon-us-in-pittsburgh/


We’ll be at PyCon US 2025, and hope to see the Django community and all our Python friends there ❤️! We have been granted a community booth at the conference – come say hi in the Expo Hall during ope
death and gravity: Process​Thread​Pool​Executor: when I‍/‍O becomes CPU-bound

Link: https://death.andgravity.com/ptpe

So, you're doing some I‍/‍O bound stuff, in parallel, many times.
Maybe you're scraping some websites – a lot of websites.
Maybe you're deleting tens of millions of DynamoDB items.
You've got your Thr
Real Python: The Real Python Podcast – Episode #247: Exploring DuckDB & Comparing Python Expressions vs Statements

Link: https://realpython.com/podcasts/rpp/247/

Are you looking for a fast database that can handle large datasets in Python? What's the difference between a Python expression and a statement? Christopher Trudeau is back on the show this week, brin
Django Weblog: Django Admin Theme Roundup 2025

Link: https://www.djangoproject.com/weblog/2025/apr/18/admin-theme-roundup/

One of Django’s most appreciated features is the built-in admin functionality. In fact, it was ranked as the most useful contrib app in the 2023 Django developer survey.

With a few lines of code, Dja
Ned Batchelder: Regex affordances

Link: https://nedbatchelder.com/blog/202504/regex_affordances.html

Python regexes have a number of features that bring new power to text
manipulation. I’m not talking about fancy matching features like negative
look-behinds, but ways you can construct and use regexe
Eli Bendersky: Sparsely-gated Mixture Of Experts (MoE)

Link: https://eli.thegreenplace.net/2025/sparsely-gated-mixture-of-experts-moe/

In transformer models, the
attention block
is typically followed by a feed forward layer (FF), which is a simple fully-connected
NN with a hidden layer and nonlinearity. Here's the code for such a blo
Python GUIs: Multithreading PyQt6 applications with QThreadPool — Run background tasks concurrently without impacting your UI

Link: https://www.pythonguis.com/tutorials/multithreading-pyqt6-applications-qthreadpool/

A common problem when building Python GUI applications is the interface "locking up" when attempting to perform long-running background tasks. In this tutorial, we'll cover quick ways to achieve concu
TechBeamers Python: Matplotlib Practice Online: Free Exercises

Link: https://techbeamers.com/matplotlib-practice-online/

📝 Check out a comprehensive set of Matplotlib exercises and practice with our Online Matplotlib Compiler. This library is mainly used for data visualization in Python. From this tutorial, you will get