Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python for Beginners: Reverse A Dictionary in Python

Link: https://www.pythonforbeginners.com/basics/reverse-a-dictionary-in-python

Dictionaries in python are a great tool to store key-value mappings. In this article, we will discuss how to reverse a dictionary in python. We will do it using different examples so that we can under
Real Python: Counting With Python's Counter

Link: https://realpython.com/courses/counting-python-counter/

Counting several repeated objects at once is a common problem in programming. Python offers a bunch of tools and techniques you can use to approach this problem. However, Python’s Counter from collect
Test and Code: 182: An Unorthodox Technical Interview and Hiring Process - Nathan Aschbacher

Link: https://testandcode.com/182

Don't you just love technical interviews, with someone who just saw your resume or CV 5 minutes ago asking you to write some code on a whiteboard. Probably code that has nothing to do with anything yo
PyCoder’s Weekly: Issue #515 (March 8, 2022)

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

#515 – MARCH 8, 2022 View in Browser » Optional Arguments and Moving Beyond “Beginner” Python It’s episode 100 of the Real Python Podcast 🎉 This week you’ll learn how to define Python functions
Python for Beginners: Empty a Dictionary in Python

Link: https://www.pythonforbeginners.com/basics/empty-a-dictionary-in-python

We use a python dictionary to store key-value pairs. Sometimes, we might need to delete key-value pairs from a dictionary. In this article, we will discuss different ways to empty a dictionary by dele
Real Python: Python 3.11 Preview: Even Better Error Messages

Link: https://realpython.com/python311-error-messages/

Python 3.11 will be released in October 2022. Even though October is still months away, you can already preview some of the upcoming features, including how Python 3.11 will offer more readable and ac
Python Morsels: Python Built-in Functions To Know

Link: https://www.pythonmorsels.com/built-in-functions-in-python/



Table of contents

Which built-ins should you know about?
The 10 commonly known built-in functions
The 10 commonly overlooked built-ins
The 5 built-ins for debugging
Learn these later
Maybe learn th
Python Bytes: #274 12 Questions You Should Be Asking of Your Dependencies

Link: https://pythonbytes.fm/episodes/show/274/12-questions-you-should-be-asking-of-your-dependencies

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

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

<p><strong>About the show</strong></p>
ItsMyCode: [Solved] Importerror: libgl.so.1: cannot open shared object file: no such file or directory

Link: https://itsmycode.com/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directory/

If you are using cv2 or opencv-python and then building the application through docker you will get an importerror: libgl.so.1: cannot open shared object file: no such file or directory.
In this tutor
Matt Layman: Security And Django

Link: https://www.mattlayman.com/understand-django/secure-apps/

In the last Understand Django article, we learned about where apps slow down. We explored techniques that help sites handle the load and provide a fast experience for users.
With this article, we will
Fabio Zadrozny: PyDev 9.3.0 (debugger improvements / last version with Python 2.7 - 3.5 support)

Link: http://pydev.blogspot.com/2022/03/pydev-930-debugger-improvements-last.html

PyDev 9.3.0 is now available.The main changes in this release are related to the debugger, with improvements such as: Major issue fixed issue where variable children sometimes wouldn't expand correctl
Read the Docs: Read the Docs newsletter - March 2022

Link: https://blog.readthedocs.com/newsletter-march-2022/


It’s been pretty quiet on the company front in February,
with nothing much to report.
We’re actively working on our latest job description,
which will be a product-focused Python development position
Real Python: The Real Python Podcast – Episode #101: Tools for Setting Up Python on a New Machine

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

There are many ways to get Python installed on your computer. If you were going to start fresh, what tools would you use? What if you need to manage multiple versions of Python and virtual environment
Python for Beginners: Append a New Row in a Dataframe in Python

Link: https://www.pythonforbeginners.com/basics/append-a-new-row-in-a-dataframe-in-python

To handle tabular data in python, we normally use dataframes. In this article, we will discuss how we can append a new row in a dataframe.
Append a New Row in a Dataframe Using the loc[] Attribute
If
Stack Abuse: Graphs in Python: Minimum Spanning Trees - Kruskal's Algorithm

Link: https://stackabuse.com/graphs-in-python-minimum-spanning-trees-kruskals-algorithm/

Introduction
Kruskal's algorithm is one of the three most famous algorithms for finding a minimum spanning tree (MST) in a graph. MSTs are widely used to calculate optimal paths in a lot of different
Daniel Roy Greenfeld: Pip Installing Dependencies Into Conda Envs

Link: https://daniel.feldroy.com/posts/2022-03-11-pip-installing-dependencies-into-conda-envs

I prefer to use Conda because once installed it works essentially the same everywhere. Including Windows.
Step 1: Create a Virtual Environment
conda create -n credible python=3.10

After agreeing to i
Brett Cannon: Unravelling Python's classes

Link: https://snarky.ca/unravelling-pythons-classes/

For the second-to-last post in my syntactic sugar series (the final post will be a summary/conclusion post), I am tackling what I expect is my largest and most complicated: the class statement (althou
Podcast.__init__: Run Your Applications Reliably On Kubernetes Without Losing Sleep With Robust

Link: https://www.pythonpodcast.com/robusta-kubernetes-application-maintenance-episode-356/

Summary
Kubernetes is a framework that aims to simplify the work of running applications in production, but it forces you to adopt new patterns for debugging and resolving issues in your systems. Robu