Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Providing Multiple Constructors in Your Python Classes

Link: https://realpython.com/python-multiple-constructors/

Sometimes you need to write a Python class that provides multiple ways to construct objects. In other words, you want a class that implements multiple constructors. This kind of class comes in handy w
Python Morsels: Dunder Variables

Link: https://www.pythonmorsels.com/topics/dunder-variables/

Have you ever seen a variable in Python that has two underscores on either side of it (__like_this__)?
These are officially referred to as special attributes or special methods, but many Python progra
Python Software Foundation: We are hiring contract developers to build new features in PyPI

Link: http://pyfound.blogspot.com/2022/02/we-are-hiring-contract-developers-to.html

The Python Software Foundation has funding available for designing, developing and deploying organization accounts in PyPI.PyPI is the official repository of Python packages. PyPI allows users to sear
Wingware: Wing Python IDE Version 8.2 - February 16, 2022

Link: https://wingware.com/news/2022-02-16

Wing 8.2 adds additional support for branching, stashing/shelving, and other operations
for Git and Mercurial, improves Extract Function/Method refactoring, fixes display
of some data types in the Sou
Python Bytes: #271 CPython: Async Task Groups in Python 3.11

Link: https://pythonbytes.fm/episodes/show/271/cpython-async-task-groups-in-python-3.11

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

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

<p><strong>About the show</strong></p>
Daniel Nouri: Build a nice CLI for your Streamlit apps with Click or Typer

Link: https://danielnouri.org/notes/2022/02/17/build-a-nice-cli-for-your-streamlit-apps-with-click-or-typer





If you're like me, you enjoy creating small apps, demos, and doing
exploratory data science work with Streamlit.
Here's a minimal Streamlit app that displays the contents of an Excel
file in the b
Jaime Buelta: Futures and easy parallelisation

Link: https://wrongsideofmemphis.com/2022/02/17/futures-and-easy-parallelisation/

Here is one small snippet that it’s very useful when dealing with quick scripts that perform slow tasks and can benefit from running in parallel. Enter the Futures Futures are a convenient abstraction
Python for Beginners: Convert String to Datetime in Python

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

We normally keep dates in our text files or spreadsheets in the form of strings. While working with date and time in python, we often need to calculate the number of days spent or time spent between t
Thomas Guest: Binary search gets a sort key

Link: http://wordaligned.org/articles/binary-search-gets-a-sort-key

Suppose you have an list of distinct elements which has been sorted
and rotated. How would you look up an element within that list?
For example, the list:
[7, 11, 13, 19, 2, 3, 5]

is sorted (the firs
Abhijeet Pal: We finally switched from WordPress to Django

Link: http://djangocentral.com/switched-from-wordpress-to-django/

With great pleasure, I will like to announce that djangocentral is now powered by Django, and I couldn't be more satisfied with the results. I was intending to do this switch for a very long time, but
Real Python: Python's zipfile: Manipulate Your ZIP Files Efficiently

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

Python’s zipfile is a standard library module intended to manipulate ZIP files. This file format is a widely adopted industry standard when it comes to archiving and compressing digital data. You can
Daniel Roy Greenfeld: More Married

Link: https://daniel.feldroy.com/posts/2022-02-more-married

Audrey and I met in early 2010 and within days were in love. We were married in late 2013. This program calculates how much more we've been married than not married.
For example:

At some point in Nov
Real Python: The Real Python Podcast – Episode #98: Drawing Fractals With Python and Working With a Weather API

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

Have you been wanting to explore fractals and complex numbers in Python? Would you like to practice working with APIs in Python through a new project? This week on the show, Christopher Trudeau is her
Python Anywhere: Accessing the files API using our new CLI tool

Link: https://blog.pythonanywhere.com/202/

The new release of the pythonanywhere helper scripts package introduces
new commands covering our files API.
Ned Batchelder: Why your mock still doesn’t work

Link: https://nedbatchelder.com/blog/202202/why_your_mock_still_doesnt_work.html

In Why your mock doesn’t work, I explained that you have
to mock objects where they are used, not where they are defined. There are
other reasons your mock may be mysteriously failing to capture acti
Python for Beginners: Repeat Each Element in a List in Python

Link: https://www.pythonforbeginners.com/lists/repeat-each-element-in-a-list-in-python

In python, we use lists for various tasks. We have already discussed various operations on lists like counting the frequency of elements in a list or reversing a list. In this article, we will discuss
The Digital Cat: From Docker CLI to Docker Compose

Link: https://www.thedigitalcatonline.com/blog/2022/02/19/from-docker-cli-to-docker-compose/

In this post I will show you how and why Docker Compose is useful, building a simple application written in Python that uses PostgreSQL. I think it is worth going through such an exercise to see how t
PyPy: PyPy v7.3.8: release of python 2.7, 3.7, 3.8, and 3.9

Link: https://www.pypy.org/posts/2022/02/pypy-v738-release.html


PyPy v7.3.8: release of python 2.7, 3.7, and 3.8-beta
The PyPy team is proud to release version 7.3.8 of PyPy. It has been only a few
months since our last release, but we have some nice speedups and