Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Luke Plant: Python Type Hints: pyastgrep case study

Link: https://lukeplant.me.uk/blog/posts/python-type-hints-pyastgrep-case-study/

In a previous post, I did a case study on my attempts to add type hints to parsy. In this post, I’m continuing the series, but in a very different project.
A while back I forked an existing tool calle
Stack Abuse: Check if a String Contains an Element from a List in Python

Link: https://stackabuse.com/check-if-a-string-contains-an-element-from-a-list-in-python/

Introduction
The ability to check if a string contains any element from a list is used in a wide range of applications, like text filtering, data validation, and natural language processing. Imagine y
Hynek Schlawack: How to Stop macOS from Stealing Focus after Switching Apps Across Desktops

Link: https://hynek.me/til/macos-window-focus-desktops/

For years, I’ve had a macOS bug that occurred randomly and that I could only fix by rebooting or logging out. The Internet is full of similar problems, but I never found a solution to mine, and my ple
Real Python: The Real Python Podcast – Episode #175: Exploring the New Features of Python 3.12

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

Python 3.12 is here! Our regular guests, Geir Arne Hjelle and Christopher Trudeau, return to discuss the new version. Geir Arne coordinated a series of preview articles with several members of the Rea
PyCharm: PyCharm 2023.3 Early Access Program: The Second Build Is Out!

Link: https://blog.jetbrains.com/pycharm/2023/10/2023-3-eap-2/

The second PyCharm 2023.3 EAP build offers improvements to support for the Django REST Framework and support for some Python 3.12 features, including new f-string grammar and initial support for type
TechBeamers Python: Python Append to Dictionary

Link: https://www.techbeamers.com/python-append-to-dictionary/

Dictionaries are a versatile data structure that allows you to store key-value pairs. In this tutorial, we will discuss the different ways to append to a dictionary in Python and provide examples of h
Talk Python to Me: #432: Migrating to Pydantic 2.0: Beanie for MongoDB

Link: https://talkpython.fm/episodes/show/432/migrating-to-pydantic-2.0-beanie-for-mongodb

By now, surely you've heard how awesome Pydantic version 2 is. The team led by Samual Colvin spent almost a year refactoring and reworking the core into a high-performance Rust version while keeping t
Python Engineering at Microsoft: Python in Visual Studio Code – October 2023 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-october-2023-release/

We’re excited to announce the October 2023 release of the Python and Jupyter extensions for Visual Studio Code!
This release includes the following announcements:

Python Debugger extension updates
De
Robin Wilson: Upcoming talks: Cafe Sci Oxford & PyData Southampton

Link: https://blog.rtwilson.com/upcoming-talks-cafe-sci-oxford-pydata-southampton/

I’m giving two talks in the next two weeks, and wanted to publicise them here in case anyone local-ish wants to come.
Oxford Cafe Scientifique

I’ve spoken at various Cafe Scientifique meet-ups before
TechBeamers Python: Python Dictionary to JSON

Link: https://www.techbeamers.com/python-dictionary-to-json/

Dictionaries are data structures that store key-value pairs. Often, in Python programs, you need to convert these dictionaries into JSON (JavaScript Object Notation) format sometimes for data storage,
TechBeamers Python: Python Sorting a Dictionary

Link: https://www.techbeamers.com/python-sorting-dictionary/

Sorting a dictionary in Python allows you to organize its key-value pairs based on certain criteria. It includes sorting by keys or values, in ascending or descending order. Python provides several me
TypeThePipe: How to upper strip in Python

Link: https://typethepipe.com/vizs-and-tips/upper-strip-python/

pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.source
Mike Driscoll: PyDev of the Week: Pradeep Kumar Srinivasan

Link: https://www.blog.pythonlibrary.org/2023/10/09/pydev-of-the-week-pradeep-kumar-srinivasan/

This week, we welcome Pradeep Kumar Srinivasan as our PyDev of the Week! Pradeep works on the Pyre package, which is a performant type-checker for Python as well as the Pysa security tool.
You can som
Real Python: Python News: What's New From September 2023

Link: https://realpython.com/python-news-september-2023/

As the leaves turned yellow and fall set in, the Python community prepared for the release of Python 3.12 in early October. This new version of the most popular programming language brings several exc
TypeThePipe: Sort in Python Polars. Arrange your DataFrames and Series

Link: https://typethepipe.com/vizs-and-tips/python-polars-sort/

pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.source
EuroPython Society: EPS Board 2023-2024

Link: https://www.europython-society.org/eps-board-2023-2024/

We’re happy to announce our new board for the next term 2023-2024:Alexander HendorfAnders Hammarquist (Treasurer)Artem Kisloskiy (Vice Chair) Artur Czepiel (Chair)Laís CarvalhoSangharshanan Veera Seba
Real Python: Using Python's min() and max()

Link: https://realpython.com/courses/python-min-max/

Python’s built-in min() and max() functions come in handy when you need to find the smallest and largest values in an iterable or in a series of regular arguments. Even though these might seem like fa
Stack Abuse: Fix "ModuleNotFoundError: No module named 'pip'" in Python

Link: https://stackabuse.com/fix-modulenotfounderror-no-module-named-pip-in-python/

Introduction
As a Python developer, you may have encountered the error ModuleNotFoundError: No module named 'pip'. This error is typically thrown when you attempt to use pip, Python's package installe