Planet Python RSS
213 subscribers
16.8K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
"Mathspp Pydon'ts": Overloading arithmetic operators with dunder methods | Pydon't 🐍

Link: https://mathspp.com/blog/pydonts/overloading-arithmetic-operators-with-dunder-methods


This article shows you how to overload the arithmetic operators in Python with dunder methods.

Introduction
Python lets you override the arithmetic operators like + for addition or * for multiplicat
Nicola Iarocci: Events 0.5 released

Link: https://nicolaiarocci.com/events-0.5-released/

Today I released Events 0.5. Thanks to Cailean Parker’s contribution, we added support for the __getitem__ dunder (aka Python magic method.) This allows the calling of events from strings, thus enabli
Abhijeet Pal: How to Perform AND Queries in Django ORM

Link: http://djangocentral.com/how-to-perform-and-queries-in-django-orm/

Django, as a popular web framework, provides a powerful Object-Relational Mapping (ORM) system that allows developers to interact with the database using Python code, abstracting away raw SQL queries.
Mike Driscoll: PyDev of the Week: Dr Becky Smith

Link: https://www.blog.pythonlibrary.org/2023/07/31/pydev-of-the-week-dr-becky-smith/

This week we welcome Dr. Becky Smith (@rebkwok) as our PyDev of the Week! Becky is one of the organizers for DjangoCon Europe. If you’d like to see what Becky has been coding recently, you shold check
Abhijeet Pal: How to Perform OR Queries in Django ORM

Link: http://djangocentral.com/how-to-perform-or-queries-in-django-orm/

Django is a popular web framework for Python that provides an intuitive and powerful Object-Relational Mapping (ORM) system. The Django ORM allows developers to interact with databases using Python cl
Abhijeet Pal: How to Perform NOT Queries in Django ORM

Link: http://djangocentral.com/how-to-perform-not-queries-in-django-orm/

In Django, performing NOT queries allows you to exclude certain records from the query results based on specific conditions. The NOT operator, represented by the tilde (~) when used in conjunction wit
Real Python: How to Download Files From URLs With Python

Link: https://realpython.com/python-download-file-from-url/

When it comes to file retrieval, Python offers a robust set of tools and packages that are useful in a variety of applications, from web scraping to automating scripts and analyzing retrieved data. Do
TestDriven.io: Django Session-based Auth for Single Page Apps

Link: https://testdriven.io/blog/django-spa-auth/

This article looks at how to add session-based authentication to a Single-Page Application (SPA) powered by Django and React.
Test and Code: 205: pytest autouse fixtures

Link: https://testandcode.com/episodes/pytest-autouse-fixtures

On a recent episode of PythonBytes, I suggested it's hard to come up with good examples for pytest autouse fixtures, as there aren't very many good reasons to use them.  James Falcon was kind enough t
Kay Hayen: Python 3.11 and Nuitka full support

Link: https://nuitka.net/posts/python311-full-support.html

I kind of noticed, that I never really updated this post series to its
conclusion. Python 3.11 is now fully supported by Nuitka, that is the
TLDR. This has been the case since 1.6, and the 1.7 release
Real Python: Reversing Strings in Python

Link: https://realpython.com/courses/python-reverse-string/

When you’re using Python strings often in your code, you may face the need to work with them in reverse order. Python includes a few handy tools and techniques that can help you out in these situation
PyCoder’s Weekly: Issue #588 (Aug. 1, 2023)

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

#588 – AUGUST 1, 2023 View in Browser » Python 3.12 Preview: More Intuitive and Consistent F-Strings In this tutorial, you’ll preview one of the upcoming features of Python 3.12, which introduce
Django Weblog: Django bugfix release: 4.2.4

Link: https://www.djangoproject.com/weblog/2023/aug/01/bugfix-release/

Today we've issued the 4.2.4 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
Erik Marsja: Coefficient of Variation in Python with Pandas & NumPy

Link: https://www.marsja.se/coefficient-of-variation-in-python-with-pandas-numpy/

The post Coefficient of Variation in Python with Pandas & NumPy appeared first on Erik Marsja.
In this tutorial blog post, we will explore how to calculate the Coefficient of Variation in Python using
PyBites: Why is Flat Better Than Nested? (Zen of Python)

Link: https://pybit.es/articles/why-is-flat-better-than-nested-zen-of-python/

The short answer: deeply nested code can be hard to read and understand (and this not only applies to Python, but for any code really).
Each level of indentation adds a level of complexity and an addi
PyBites: The Importance of Having a Growth Mindset

Link: https://pybit.es/articles/the-importance-of-having-a-growth-mindset/

Welcome back to the Pybites podcast!
Today part II with Alejandro Briceño joining us to talk about growth mindset.
What does it mean, why is it so important and how has it been extremely helpful in Al
PyBites: How to better streamline your Python project using a Makefile

Link: https://pybit.es/articles/add-makefile-to-python-project/

Makefiles are awesome, and you can use them in your Python projects too (they are not only to compile and build C/C++ projects that is)
They help you automate various tasks and streamline the develop
Stack Abuse: The Power of Indexing: Boosting Data Wrangling Efficiency with Pandas

Link: https://stackabuse.com/the-power-of-indexing-boosting-data-wrangling-efficiency-with-pandas/

Introduction
Pandas is the most widely used Python library for data manipulation, and it allows us to access and manipulate data efficiently.
By understanding and utilizing indexing techniques effecti
Python Software Foundation: Announcing Python Software Foundation Fellow Members for Q1 2023! 🎉

Link: https://pyfound.blogspot.com/2023/08/announcing-python-software-foundation.html

The PSF is pleased to announce its first batch of PSF Fellows for 2023! Let us welcome the new PSF Fellows for Q1! The following people continue to do amazing things for the Python community:Abhishek