Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Brian Okken: Python 3.12 + "AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?"

Link: https://pythontest.com/posts/2023/2023-10-02-py312-impimporter/

Are you seeing AttributeError: ...ImpImporter ... when trying to test with tox and Python 3.12?
If so, try:
Creating your develompent venv with Python 3.11 Adding download = true to your tox.ini run
PyCharm: PyCharm 2023.2.2 Is Now Available

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

You can update to this version from inside the IDE, using the Toolbox App, or using snaps if you are an Ubuntu user. Also, you can download it from our website.
Download PyCharm 2023.2.2
Here is the l
TechBeamers Python: Python Get Last Element in List

Link: https://www.techbeamers.com/python-get-last-element-in-list/

In Python, working with lists is a common task, and accessing the last element of a list is a frequent requirement. In this tutorial, we will explore various Python methods to efficiently get the last
Real Python: What's New in Python 3.12

Link: https://realpython.com/courses/new-features-python-312/

It’s that time of year again, time for a new release of Python. Although Python 3.12
mostly focuses on internal improvements, there’s a little something for
everyone. You can read up on all the new fe
PyCoder’s Weekly: Issue #597 (Oct. 3, 2023)

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

#597 – OCTOBER 3, 2023 View in Browser » Python 3.12: Cool New Features for You to Try In this tutorial, you’ll learn about the new features in Python 3.12. You’ll explore how the new release ex
Django Weblog: Django security releases issued: 4.2.6, 4.1.12, and 3.2.22

Link: https://www.djangoproject.com/weblog/2023/oct/04/security-releases/

In accordance with our security release policy, the Django team
is issuing
Django 4.2.6,
Django 4.1.12, and
Django 3.2.22.
These releases address the security issue detailed below. We encourage all
us
Real Python: Python's tuple Data Type: A Deep Dive With Examples

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

In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those situatio
TechBeamers Python: Python Remove Last Element from List

Link: https://www.techbeamers.com/python-remove-last-element-from-list/

Lists are one of the most fundamental data structures in Python. They are mutable, meaning that their elements can be changed after their creation. Sometimes, you may need to remove the last element f
William Minchin: minchin.jrnl v7.1 “Phoenix” released

Link: https://blog.minchin.ca/2023/10/minchin-jrnl-710-released.html

Today, the lastest update of minchin.jrnl was released! This release add
custom exporters and importers!
Upgrading
You can upgrade it today:
pip install minchin.jrnl --upgrade

Custom Plugins (Importe
The Python Coding Blog: Butter Berries, Chess, and Timezones | September in Review

Link: https://thepythoncodingbook.com/2023/10/04/butter-berries-chess-and-timezones-september-in-review/

The Python Coding Stack travelled across timezones, through supermarket aisles, and across a chess board in September.
The month started with Butter Berries, An Elusive Delicacy. The inspiration for t
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