Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Ned Batchelder: Singleton is a bad idea

Link: https://nedbatchelder.com/blog/202204/singleton_is_a_bad_idea.html

Design patterns are a great way to think about interactions among classes.
But the classic Singleton pattern is bad: you shouldn’t use it and there are
better options.The classic Singleton pattern is
Quansight Labs Blog: Why is writing blog posts hard?

Link: https://labs.quansight.org/blog/2022/04/why-is-writing-blog-posts-hard/

We write code. We write issues. We write documentation. We write notes to
ourselves, messages to each other, and guidelines to unite teams across
projects.
Day in and out our remote work and open so
The Python Coding Blog: Understanding Two-Point Perspective Drawing using Python

Link: https://thepythoncodingbook.com/2022/04/10/understanding-two-point-perspective-drawing-using-python/

Have you ever struggled to truly understand a topic? Perhaps one related to your work, or maybe linked to a hobby? Writing a computer program to investigate the subject can often help you get that ext
Andre Roberge: Natural syntax for units in Python

Link: https://aroberge.blogspot.com/2022/04/natural-syntax-for-units-in-python.html

In the past week, there has been an interesting discussion on Python-ideas about Natural support for units in Python. As I have thought introductory courses in Physics for about 20 of the 30 years of
Podcast.__init__: Accelerate And Simplify Cloud Native Development For Kubernetes Environments With Gefyra

Link: https://www.pythonpodcast.com/gefyra-cloud-native-development-episode-359/

Cloud native architectures have been gaining prominence for the past few years due to the rising popularity of Kubernetes. This introduces new complications to development workflows due to the need to
William Minchin: AutoLoader Plugin 1.1.0 for Pelican Released

Link: https://blog.minchin.ca/2022/04/autoloader-112.html

AutoLoader is a plugin for Pelican,
a static site generator written in Python.
AutoLoader is a “meta plugin” in that it doesn’t directly affect your Pelican
site, but rather works to make your other p
Jaime Buelta: The Many Challenges of a (Software) Architect

Link: https://wrongsideofmemphis.com/2022/04/11/the-many-challenges-of-a-software-architect/

Software Architecture is a fascinating subject. The objective of a solid architecture for a system is to generate an underlying structure that is separates components in a meaningful way, but at the s
Django Weblog: Django security releases issued: 4.0.4, 3.2.13, and 2.2.28

Link: https://www.djangoproject.com/weblog/2022/apr/11/security-releases/

In accordance with our security release policy, the Django team
is issuing
Django 4.0.4,
Django 3.2.13, and
Django 2.2.28.
These release addresses the security issues detailed below. We encourage all
Mike Driscoll: PyDev of the Week: Peter Baumgartner

Link: https://www.blog.pythonlibrary.org/2022/04/11/pydev-of-the-week-peter-baumgartner/

This week we welcome Peter Baumgartner (@pmbaumgartner) as our PyDev of the Week! Peter is a fellow Python blogger who writes about Python and data science. Peter also has a collection of interesting
Real Python: Python News: What's New From March 2022?

Link: https://realpython.com/python-news-march-2022/

In March 2022, the Python 3.11.0a6 pre-release version became available for you to test, so you can stay on top of Python’s latest features. This release is the sixth of seven planned alpha releases b
Python for Beginners: Tuple String to Tuple in Python

Link: https://www.pythonforbeginners.com/basics/tuple-string-to-tuple-in-python

Converting data from one form to another is a tedious task. In this article, we will discuss two ways to convert a tuple string to a tuple in python.
How to Convert a Tuple String to a Tuple in Python
Real Python: Exploring Keywords in Python

Link: https://realpython.com/courses/exploring-keywords-in-python/

Every programming language has special reserved words, or keywords, that have specific meanings and restrictions around how they should be used. Python is no different. Python keywords are the fundame
PyCon: PyCon US 2022 Welcomes 8 Early-Stage Companies To Startup Row

Link: https://pycon.blogspot.com/2022/04/startup-row-2022-lineup-announcement.html

It's official! The Startup Row lineup has been finalized, and we're very excited to give eight early-stage companies a unique opportunity to share what they're working on with the vibrant, diverse gr
Python Morsels: String Formatting Techniques

Link: https://www.pythonmorsels.com/string-formatting/

Python's string formatting syntax is both powerful and complex. Let's break it down and then look at some cheat sheets.


Table of contents

What are we talking about?
Definitions
Example f-strings
Fo
PyCoder’s Weekly: Issue #520 (April 12, 2022)

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

#520 – APRIL 12, 2022 View in Browser » The Oregon Trail in Python In the 1971 text-based game, the player guides a party of settlers along the Oregon Trail. Random events occur and death abound
David Amos: Revisiting Rock Paper Scissors in Python

Link: https://davidamos.dev/revisiting-rock-paper-scissors-in-python/

When you learn to program for the first time, you look for (or, perhaps, are assigned) projects that reinforce basic concepts. But how often do you, once you&aposve attained more knowledge and experie
Stack Abuse: Guide to Python's append() Function

Link: https://stackabuse.com/guide-to-pythons-append-function/

Introduction
Basic data types in Python allow us to store a single value under a symbolic name. This roughly follows the mathematical notation of variables. In a way, a name is assigned to a value, so
Real Python: Python Virtual Environments: A Primer

Link: https://realpython.com/python-virtual-environments-a-primer/

In this tutorial, you’ll learn how to work with Python’s venv module to create and manage separate virtual environments for your Python projects. Each environment can use different versions of package
Malthe Borch: Automatic HTTPS on Kubernetes

Link: https://maltheborch.com/2022/04/automatic-https-on-kubernetes.html


The ingress controller supported by the Kubernetes project itself is
nginx. And while there are recipes for setting up automated issuing of TLS certificates using
Brian Okken: Current Git CLI workflow

Link: https://pythontest.com/git-cli-workflow/

Workflow Most of my interactions with git CLI, especially for quick changes, is:
$ git checkout main $ git pull $ git checkout -b okken_something $ git commit -a -m 'quick message' $ git push But even