Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
PyCoder’s Weekly: Issue #591 (Aug. 22, 2023)

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

#591 – AUGUST 22, 2023 View in Browser » Python Polars: A Lightning-Fast DataFrame Library Welcome to the world of Polars, a powerful DataFrame library for Python! In this showcase tutorial, you
meejah.ca: magic-wormhole 0.13.0 released

Link: https://meejah.ca/blog/magic-womrhole-0.13.0

At long last a new release of magic-folder
Eli Bendersky: My favorite prime number generator

Link: https://eli.thegreenplace.net/2023/my-favorite-prime-number-generator/

Many years ago I've re-posted a Stack Overflow answer with Python code for a terse prime sieve
function that generates a potentially infinite sequence of prime
numbers ("potentially" because it will r
Marcos Dione: disk-usage-while-importing-an-osm-rendering-database

Link: http://www.grulic.org.ar/~mdione/glob//posts/disk-usage-while-importing-an-osm-rendering-database/

Preface: I wanted to include the updating part in this post, but it got too long already, so I'll split it in two. I
will update this post when the second comes out.
TL;DR version: import seems to use
Stack Abuse: Fix "Could not install packages due to an OSError: [WinError 2]" Error

Link: https://stackabuse.com/fix-could-not-install-packages-due-to-an-oserror-winerror-2-error/

Introduction
Python, an open-source language used by many developers, sometimes presents us with error messages that can be difficult to decipher. One such error message is "Could not install packages
Mike Driscoll: Python in Excel Announcement!

Link: https://www.blog.pythonlibrary.org/2023/08/23/python-in-excel-announcement/

Microsoft announced that Python is now a part of Excel! Guido van Rossum mentioned on Twitter that he helped the Excel team add Python to the popular spreadsheet application.
You can get Python in Exc
Stack Abuse: Solving "NameError: name 'random' is not defined" in Python

Link: https://stackabuse.com/solving-random-is-not-defined-nameerror-in-python/

Introduction
In Python, one of the most common errors that beginners and even some seasoned programmers encounter is the NameError: name 'random' is not defined. This error often pops up when trying t
Real Python: Click and Python: Build Extensible and Composable CLI Apps

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

You can use the Click library to quickly provide your Python automation and tooling scripts with an extensible, composable, and user-friendly command-line interface (CLI). Whether you’re a developer,
Stack Abuse: Fixing "NameError: name 'df'/'pd' is not defined" in Python

Link: https://stackabuse.com/fixing-nameerror-name-df-pd-is-not-defined-in-python/

Introduction
When using Pandas in Python, a library for data manipulation and analysis, you might have encountered an error like "NameError: name 'df'/'pd' is not defined". In this Byte, we'll show wh
Test and Code: 206: TDD in Context

Link: https://testandcode.com/episodes/206-tdd-in-context

TDD (Test Driven Development) started from Test First Programming, and has been around at least since the 90's. However, software tools and available CI systems have changed quite a bit since then. Ma
Stack Abuse: Incompatible Type Comparisons in Python

Link: https://stackabuse.com/incompatible-type-comparisons-in-python/

Introduction
In Python, we often encounter a variety of errors and exceptions while writing or executing a script. A very common error, especially for beginners, is TypeError: '<' not supported betwee
Stack Abuse: Get All Object Attributes in Python

Link: https://stackabuse.com/get-all-object-attributes-in-python/

Introduction
In Python, everything is an object - from integers and strings to classes and functions. This may seem odd, especially for primitive types like numbers, but even those have attributes, li
Stack Abuse: Creating a Directory and its Parent Directories in Python

Link: https://stackabuse.com/creating-a-directory-and-its-parent-directories-in-python/

Introduction
In Python, we often need to interact with the file system, whether it's reading files, writing to them, or creating directories. This Byte will focus on how to create directories in Pytho
PyBites: Harnessing Downtime: The Power of Disconnecting

Link: https://pybit.es/articles/harnessing-downtime-the-power-of-disconnecting/

In this episode of the Pybites podcast, we dive into the power of stepping back from the daily grind, whether that’s coding or career-focused
Watch here:


Or listen here:

Drawing insights from Juli
PyBites: Make Each Line Count, Keeping Things Simple in Python

Link: https://pybit.es/articles/make-each-line-count-keeping-things-simple-in-python/

A challenge in software development is to keep things simple
For your code to not grow overly complex over time

Simple is better than complex.Complex is better than complicated.
Zen of Python
Simp
EuroPython Society: EPS 2023 General Assembly - Call for Board Candidates

Link: https://www.europython-society.org/eps2023-ga-call-for-board-candidates/

It feels like yesterday that many of us were together in Prague or online for EuroPython 2023. Each year, the current board of the EuroPython Society (EPS) holds a General Assembly (GA). It is a preci
PyCharm: PyCharm 2023.2.1 Is Out!

Link: https://blog.jetbrains.com/pycharm/2023/08/pycharm-2023-2-1-is-out/

PyCharm 2023.2.1, the first bug-fix update for PyCharm 2023.2, is now available!
You can update to v2023.2.1 by using the Toolbox App, installing it right from the IDE, or downloading it from our webs
Python Insider: Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18 is now available

Link: https://pythoninsider.blogspot.com/2023/08/python-3115-31013-3918-and-3818-is-now.html

There’s security content in the releases, let’s dive right in.
gh-108310: Fixed an issue where instances of ssl.SSLSocket
were vulnerable to a bypass of the TLS handshake and included
protections (l
Real Python: The Real Python Podcast – Episode #169: Improving Classification Models With XGBoost

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

How can you improve a classification model while avoiding overfitting? Once you have a model, what tools can you use to explain it to others? This week on the show, we talk with author and Python trai