Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Stack Abuse: The 'b' Prefix in Python String Literals

Link: https://stackabuse.com/the-b-prefix-in-python-string-literals/

Introduction
In Python, you may have come across a string literal prefixed with the 'b' character and wondered what it means. This Byte aims to shed light on this feature of Python strings, its connec
Django Weblog: Last call for DjangoCon US Hotel Reservations

Link: https://www.djangoproject.com/weblog/2023/sep/06/last-call-for-djangocon-us-hotel-reservations/


DjangoCon US 2023 is just about here!
While the conference isn’t until Oct 16-20, we’re sharing this now
because discounted hotel rooms are filling up fast and will go away
entirely on September 15th
Daniel Roy Greenfeld: TIL: pytest with breakpoints

Link: https://daniel.feldroy.com/posts/til-2023-09-pytest-with-breakpoints

To inject a breakpoint into a failing pytest run, add --pdb to your pytest command:
py.test --pdb

This will drop you into a pdb session at the point of failure. You can then inspect the state of the
Stack Abuse: Fixing "ValueError: Truth Value of a Series is Ambiguous" Error in Pandas

Link: https://stackabuse.com/fixing-valueerror-truth-value-of-a-series-is-ambiguous-error-in-pandas/

Introduction
Sometimes when working with Pandas in Python, you might encounter an error message saying "Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()". This
Matt Layman: SendGrid Inbound - Building SaaS with Python and Django #170

Link: https://www.mattlayman.com/blog/2023/sendgrid-inbound-building-saas-with-python-and-django-170/

In this episode, we worked on the inbound hook to receive email responses from SendGrid using the service’s Inbound Parse feature. We worked through the configuration and addressed the security concer
TechBeamers Python: String concatenation in Python Explained

Link: https://www.techbeamers.com/string-concatenation-in-python/

String concatenation in Python is the process of joining multiple strings together to create a single string. It’s like combining words to form sentences. In Python, we have various methods to achieve
Daniel Roy Greenfeld: TIL: Poetry PyPI Project URLS

Link: https://daniel.feldroy.com/posts/til-2023-09-peotry-pyproject-urls

Poetry has its own location for urls in the [tool.poetry.urls] table. Per the Poetry documentation on urls:

"In addition to the basic urls (homepage, repository and documentation), you can specify an
Stack Abuse: How to Update pip in a Virtual Environment

Link: https://stackabuse.com/how-to-update-pip-in-a-virtual-environment/

Introduction
In Python, pip is a widely used package manager that allows developers to install and manage 3rd party libraries that are not part of the Python standard library. When working within a vi
TechBeamers Python: Python Print() with Examples

Link: https://www.techbeamers.com/python-print-with-examples/

Introduction to Python print() with Examples The Python print() function is a built-in function that prints text either plain or in a specific format with or without the newline to the standard output
Stack Abuse: Python: How to Specify a GitHub Repo in requirements.txt

Link: https://stackabuse.com/python-how-to-specify-a-github-repo-in-requirements-txt/

Introduction
In Python the requirements.txt file helps manage dependencies. It's a simple text file that lists the packages that your Python project depends on. But did you know you can also specify a
CodersLegacy: pythonw.exe Tutorial: Running Python Scripts Silently

Link: https://coderslegacy.com/pythonw-exe-tutorial/

Python is a versatile programming language known for its simplicity and wide range of applications. It is commonly used for web development, data analysis, artificial intelligence, and more. While Pyt
Stack Abuse: How to Copy Files in Python

Link: https://stackabuse.com/how-to-copy-files-in-python/

Introduction
Whether you're reading data from files or writing data to files, understanding file operations is important. In Python, and other languages, we often need to copy files from one directory
PyBites: Excel Embraces Python, Opening Doors to New Roles and How PDI Can Help

Link: https://pybit.es/articles/excel-embraces-python-opening-doors-to-new-roles-and-how-pdi-can-help/

In this episode, we delve into the groundbreaking integration of Python within Microsoft Excel and its transformative impact on non-tech professions.
Listen here:

Or watch here:


Discover how this
Real Python: The Real Python Podcast – Episode #171: Making Each Line of Code Efficient & Python In Excel

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

Are you writing efficient Python with as few lines of code as possible? Are you familiar with the many built-in language features that will simplify your code and make it more Pythonic? Christopher Tr
Mike Driscoll: How to Validate an IP Address in Python

Link: https://www.blog.pythonlibrary.org/2023/09/08/how-to-validate-an-ip-address-in-python/

Validating data is one of the many tasks engineers face around the world. Your users make typos as often as anyone else, so you must try to catch those errors.
One common type of information that an e
Python Engineering at Microsoft: Python in Visual Studio Code – September 2023 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-september-2023-release/

We’re excited to announce the September 2023 release of the Python and Jupyter extensions for Visual Studio Code!
This release includes the following announcements:

“Recreate” or “Use Existing” optio
Stack Abuse: Determining the Size of an Object in Python

Link: https://stackabuse.com/determining-the-size-of-an-object-in-python/

Introduction
When writing code, you may need to determine how much memory a particular object is consuming. There are a number of reasons you may need to know this, with the most obvious reason being
Stack Abuse: Importing Multiple CSV Files into a Single DataFrame using Pandas in Python

Link: https://stackabuse.com/importing-multiple-csv-files-into-a-single-dataframe-using-pandas-in-python/

Introduction
In this Byte we're going to talk about how to import multiple CSV files into Pandas and concatenate them into a single DataFrame. This is a common scenario in data analysis where you need
Stack Abuse: When to Use Shebangs in Python Scripts

Link: https://stackabuse.com/when-to-use-shebangs-in-python-scripts/

Introduction
At some point when writing Python code, you may have come across a line at the top of some scripts that looks something like this: #!/usr/bin/env python3. This line, known as a shebang, i
Stack Abuse: The 'u' and 'r' String Prefixes and Raw String Literals in Python

Link: https://stackabuse.com/the-u-and-r-string-prefixes-and-raw-string-literals-in-python/

Introduction
While learning Python or reading someone else's code, you may have encountered the 'u' and 'r' prefixes and raw string literals. But what do these terms mean? How do they affect our Pytho