Planet Python RSS
213 subscribers
16.8K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Python's doctest: Document and Test Your Code at Once

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

Are you interested in writing usage examples for your code that work as documentation and test cases simultaneously? If your answer is yes, then Python’s doctest module is for you. This module provide
Zero to Mastery: Python Monthly Newsletter 💻🐍

Link: https://zerotomastery.io/blog/python-monthly-newsletter-october-2022/?utm_source=python-rss-feed

35th issue of the Python Monthly Newsletter! Read by 25,000+ Python developers every month. This monthly Python newsletter covers the latest Python news so that you stay up-to-date with the industry a
Python Morsels: SyntaxError: invalid syntax

Link: https://www.pythonmorsels.com/syntaxerror-invalid-syntax/

Python's invalid syntax error message comes up often, especially when you're first learning Python. What usually causes this error and how can you fix it?


Table of contents

What is a SyntaxError in
Django Weblog: Django bugfix release: 4.1.3

Link: https://www.djangoproject.com/weblog/2022/nov/01/bugfix-release/

Today we've issued the 4.1.3 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is
IslandT: Matplotlib Tutorial — Create a scatter chart

Link: https://islandtropicaman.com/wp/2022/11/01/matplotlib-tutorial-create-a-scatter-chart/

In this Matplotlib example, I am going to create a scatter chart that shows the quantity and the type of shoes I have sold recently. The scatter chart below will show dots that represent the quantity
Real Python: Python Basics: Scopes

Link: https://realpython.com/courses/python-basics-scopes/

On your Python journey, you’ve probably learned about functions and loops. To fully understand functions and loops in Python, you need to be familiar with the issue of scope.
By the end of this video
Juri Pakaste: Git worktrees helper

Link: https://juripakaste.fi/worktrees/

I recently became an avid user of Git worktrees. However, the command line interface to them is about as great as Git command line interfaces always are. Just git worktree add is a confusing maze of o
PyCoder’s Weekly: Issue #549 (Nov. 1, 2022)

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

#549 – NOVEMBER 1, 2022 View in Browser » How to Get the First Match From a Python List or Iterable In this tutorial you’ll learn about the best ways to get the first match from a Python list or
Python Bytes: #308 Conference season is heating up

Link: https://pythonbytes.fm/episodes/show/308/conference-season-is-heating-up

<p><strong>Watch the live stream:</strong></p>

<a href='https://www.youtube.com/watch?v=rQgMQH4QWFc' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>
IslandT: Overrides function in TypeScript

Link: https://islandtropicaman.com/wp/2022/11/02/overrides-function-in-typescript/

Below TypeScript example will show you how to override a function. In order to override a function you will need to provide a function with its parameter of type any and its return value also of type
IslandT: Python Example — Find the future sum of money with Python

Link: https://islandtropicaman.com/wp/2022/11/02/python-example-find-the-future-sum-of-money-with-python/

In this python example, I will create a simple python function to calculate the compound interest which will then be used to calculate the future sum of money (F) if the present sum of money (P) and t
PyCharm: How to Debug a Jupyter Notebook in PyCharm

Link: https://blog.jetbrains.com/pycharm/2022/11/how-to-debug-a-jupyter-notebook-in-pycharm/

Making mistakes in your code is a pain, and debugging in Jupyter notebooks can get messy. While Jupyter helpfully displays the full Python traceback, which highlights the lines that have failed, worki
Python for Beginners: String Concatenation and Formatting

Link: https://www.pythonforbeginners.com/concatenation/string-concatenation-and-formatting

As a Python programmer, it’s virtually guaranteed that you’ll need to master string concatenation and formatting.
Whether it’s preparing a message that will eventually be read by a user, or writing to
John Cook: Python code to solve Kepler’s equation

Link: https://www.johndcook.com/blog/2022/11/02/keplers-equation-python/

The previous post looked at solving Kepler’s equation using Newton’s method. The problem with using Newton’s method is that it may not converge when the eccentricity e is large unless you start very c
David Amos: Method Chaining in Pandas: Bad Form Or a Recipe For Success?

Link: https://davidamos.dev/method-chaining-in-pandas/


This article contains affiliate links. See my affiliate disclosure for more information.
Python trainer Matt Harrison has been creating a bit of a stir.Some of his pandas examples, like the one below
Real Python: Should You Update to the Latest Python Bugfix Version?

Link: https://realpython.com/python-bugfix-version/

If you’ve been hanging out in the Python community for a while, you may remember discussions about Python 2 vs Python 3, or you may have seen versions like Python 3.10 and Python 3.11 released with so
Brett Cannon: Unravelling assignment expressions

Link: https://snarky.ca/unravelling-assignment-expressions/

As part of my series on Python&aposs syntactic sugar, I initially skipped tackling conditional expressions because I made them more complicated than I needed to in my head. 😅 But there is some key sub
Talk Python to Me: #388: Python 3.11 is here and it's fast

Link: https://talkpython.fm/episodes/show/388/python-3.11-is-here-and-its-fast

Python 3.11 is here! Keeping with the annual release cycle, the Python core devs have released the latest version of Python. And this one is a big one. It has more friendly error messages and is massi
Mike Driscoll: Python 101 - How to Work with CSV files

Link: https://www.blog.pythonlibrary.org/2022/11/03/python-101-how-to-work-with-csv-files/

There are many common file types that you will need to work with as a software developer. One such format is the CSV file. CSV stands for "Comma-Separated Values" and is a text file format that uses a
Python⇒Speed: Good old-fashioned code optimization never goes out of style

Link: https://pythonspeed.com/articles/old-fashioned-software-optimized/

Sometimes, making your Python data processing software faster doesn’t require libraries like NumPy or Pandas, or specialized techniques like vectorization.
In fact, if you’re doing string processing,