Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
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
Abhijeet Pal: Making Django Admin Jazzy With django-jazzmin

Link: http://djangocentral.com/making-django-admin-jazzy-with-django-jazzmin/

Django admin is undoubtedly one of the most useful apps of Django. Over the years there has been very little change in the admin app as far as the UX is concerned and it's not a bad thing at all. Djan
The Open Sourcerer: GTG 0.6 release candidate

Link: https://fortintam.com/blog/gtg-0-6-release-candidate/

Today we are publishing a “release candidate” version of Getting Things GNOME 0.6. You can either try it out directly from the git master version (by running launch.sh; see the general instructions),
Moshe Zadka: Reading the Documentation for Popular Products

Link: https://orbifold.xyz/documentation-for-popular-products.html

Popular products often have a
"Getting Started"
tutorial
in order to guide you in using them
for the first timees.
Those guides are easy to follow,
pleasant to use,
and lead you do make bad design cho
Podcast.__init__: Scaling Knowledge Management For Technical Teams With Knowledge Repo

Link: https://www.pythonpodcast.com/knowledge-repo-open-source-knowledge-management-episode-353/

One of the most persistent challenges faced by organizations of all sizes is the recording and distribution of institutional knowledge. In technical teams this is exacerbated by the need to incorporat
Brian Okken: Lean TDD

Link: https://pythontest.com/lean-tdd/

Preface Lean TDD is an attempt to reconcile some conflicting aspects of Test Driven Development and Lean Software Development.
I’ve mentioned Lean TDD on the podcast a few times and even tried to do a
Mike Driscoll: PyDev of the Week: Leonardo Giordani

Link: https://www.blog.pythonlibrary.org/2022/02/21/pydev-of-the-week-leonardo-giordani/

This week we welcome Leonardo Giordani (@tw_lgiordani) as our PyDev of the Week! Leonardo is the author of Clean Architectures in Python. Leonardo also writes lots of articles on his website.
PyCon UK
Test and Code: 180: Lean TDD

Link: https://testandcode.com/180

Lean TDD is an attempt to reconcile some conflicting aspects of Test Driven Development and Lean Software Development.
I've mentioned Lean TDD on the podcast a few times and even tried to do a quick o
ItsMyCode: [Solved] Error in plot.new() : figure margins too large

Link: https://itsmycode.com/solved-error-in-plot-new-figure-margins-too-large/

The error in plot.new() : figure margins too large occur if the plot panel in the RStudio is too small for the margins you are trying to create.
In this tutorial, we will learn how to resolve error in
Real Python: Socket Programming in Python (Guide)

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

Sockets and the socket API are used to send messages across a network. They provide a form of inter-process communication (IPC). The network can be a logical, local network to the computer, or one tha