Issue #598 (Oct. 10, 2023)

#598 – OCTOBER 10, 2023

Python’s tuple Data Type: A Deep Dive With Examples

In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those situations where you need to store heterogeneous data, like that in a database record, for example.
REAL PYTHON

Things I’ve Learned About Building CLI Tools in Python

In this blog post, Simon covers many of the things he has learned over the years when writing command-line tools in Python. He talks about the different kinds of command line arguments and tools that will help you process them.
SIMON WILLISON

See How Sourcery Can Be Your Pair Programmer – Anytime, Anywhere

Sourcery is your AI-powered pair programmer – helping you with everything from understanding a new project you’ve just started working on, to creating automated code reviews, to writing tests and docstrings and more. Start your free trial today →
SOURCERY sponsor

Python 3.12: What Didn’t Make the Headlines

There has been plenty of coverage about the changes in Python 3.12, this article tries to show what fell through the cracks. It talks about performance, pathlib improvements, and a few other changes.
BITE CODE

PSF Hiring a Part Time Django Developer

PYTHON SOFTWARE FOUNDATION

Python 3.11.6 Released

CPYTHON DEV BLOG

Flask 3.0.0 Released

PALLETSPROJECTS.COM

Django Security Releases Issued: 4.2.6, 4.1.12, and 3.2.22

DJANGO SOFTWARE FOUNDATION

Discussions

Tips for Solopreneur?

HACKER NEWS

Python Jobs

Senior Full Stack Developer (Vancouver, BC, Canada)

Maax.ai

More Python Jobs >>>

Articles & Tutorials

Type Hints: Passing Any for Unused Test Parameters

When you create a function to match an interface, it often needs to accept parameters that it doesn’t use. Once you introduce type hints, testing such functions can become a little irksome as Mypy requires all arguments to have the correct types. This article covers a technique to avoid that work.
ADAM JOHNSON

Python Basics: Reading and Writing Files

In this video course, you’ll learn how to move data back and forth between your Python programs and external software by reading and writing files. You’ll practice reading and writing data stored in the CSV file format, one of the most widely supported file formats for transferring tabular data.
REAL PYTHON course

Python Type Hints: pyastgrep Case Study

Previously, Luke wrote an article about what was involved in adding Type Hints to parsy. This follow-on article tackles the effort on a project with different challenges: pyastgrep.
LUKE PLANT

Python 3.12.0 From a Supply Chain Security Perspective

Seth is the Security Developer-in-Residence at the Python Software Foundation and this article is part of his on-going effort to document and improve the release process and tools. Associated HN discussion.
SETH LARSON

Hallucination Detection for Abstractive Summaries

Abstractive summary is an AI task that rephrases and condenses text content into a summary. This article is a deep dive into how to ensure correctness and the math involved in ensuring fluency, coherence, relevance, and consistency.
EUGENE YAN

Data-Driven News Discourse Analysis With Python

This tutorial shows you how to do discourse analysis on news using Python through The Guardian’s API. You’ll see how to access content across years and perform topic analysis with sentence embedding.
KARLIS KANDERS

5 Ways to Measure Execution Time in Python

There are several ways to measure the passing of time in Python, especially when determining the performance of your code. Read on to learn five functions from the time module and how to use them.
JASON BROWNLEE

Python-Specific Design Patterns

This is a third article in a series on design patterns in Python, with this one talking about a variation on singletons, a pattern that uses dynamic function binding, and sentinels.
DIMITRIJE STAMENIC

Mastering Integration Testing With FastAPI

This article shows you how to use MongoMock and MockS3 to power your integration tests on a FastAPI based project.
ALEX JACOBS

Using GeoDjango and PostGIS in Django

This article shows how to use GeoDjango and PostGIS to work with geospatial data in Postgres.
ADEYINKA ADEGBENRO • Shared by Manuel Weiss

Projects & Code

perspective: Visualization Component for Large Datasets

GITHUB.COM/FINOS

shshsh: A Bridge Between Python and Shell

GITHUB.COM/ZQQQQZ2000

CardStock: Cross-Platform GUI Building Tool

GITHUB.COM/BENJIE-GIT • Shared by Mike McLeod

reverse_argparse: Tell the User What They Ran

GITHUB.COM/SANDIALABS • Shared by Jason M. Gates

leaptable: Manage LLM-powered Agents on Tabular Data

GITHUB.COM/PETERWNJENGA

Events

PyHEP 2023

October 9 to October 13, 2023
CERN.CH

Weekly Real Python Office Hours Q&A (Virtual)

October 11, 2023
REALPYTHON.COM

Python Atlanta

October 12 to October 13, 2023
MEETUP.COM

PyConnect Panama 2023

October 13 to October 15, 2023
MEETUP.COM

Django Girls Aba

October 13 to October 14, 2023
DJANGOGIRLS.ORG

DjangoCon US 2023

October 16 to October 21, 2023
DJANGOCON.US

PyCon MEA & Data Science 2023

October 16 to October 20, 2023
GLOBALDEVSLAM.COM

EduPy 2023

October 21 to October 22, 2023
SLEC.NET

Happy Pythoning!
This was PyCoder’s Weekly Issue #598.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s