Issue #603

SciPy Builds, Packaging Tools, Document with ChatGPT, and More

Nov. 14, 2023

SciPy Builds, Packaging Tools, Document with ChatGPT, and More
#603 – NOVEMBER 14, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
SciPy Builds on Windows Are a Minor Miracle
Moving SciPy to Meson meant finding a different Fortran compiler on Windows, which was particularly tricky to pull off for conda-forge. This blog tells the story about how things looked pretty grim for the Python 3.12 release, and how things ended up working out just in the nick of time. Associated HN discussion.
ALEX OBERMEIER

An Unbiased Evaluation of Environment and Packaging Tools
This detailed article covers the wide world of packaging in Python, how the different tools overlap, and how each has its own area of specialization. A great deep dive on all the choices out there that can help you pick the right tool for your project.
ANNA-LENA POPKES

Automate LLM Backend Deployments Using Infrastructure as Code
New GitHub project to provision, update, and destroy the cloud infrastructure for a LLM backend using infrastructure as code (Python). Deployment options include deploying Hugging Face models to Docker (local), Runpod, and Azure →
PULUMIsponsor

Document Your Python Code and Projects With ChatGPT
Good documentation is a critical feature of any successful Python project. In practice, writing documentation is hard and can take a lot of time and effort. Nowadays, with tools like ChatGPT, you can quickly document your Python code and projects.
REAL PYTHON

PSF Receives “Wonderfully Welcoming Award” From GitHub!
PYTHON SOFTWARE FOUNDATION


Discussions


Idea: Return a NamedTuple
PYTHON.ORG


Articles & Tutorials


Python Errors as Values
Error handling can be done in a variety of ways, and this article discusses why one organization decided to use returned error values instead of exceptions. Along the way, you’ll see comparisons between Python, Go, and Rust to better understand the different mechanisms.
AARON HARPER

Guide to Hash Tables in Python
Hash tables offer an efficient and flexible method of storing and retrieving data, making them indispensable for tasks involving large data sets or requiring rapid access to stored items. Python’s dict is a hash, learn how it works and how it can help your code.
DIMITRIJE STAMENIC

Confusing git Terminology
Julia is working on a doc that explains git and in doing so polled some people about what git terminology they found confusing. This post covers the most common responses and attempts to clear up the confusion.
JULIA EVANS

Check if a Python String Contains a Substring
In this video course, you’ll learn the best way to check whether a Python string contains a substring. You’ll also learn about idiomatic ways to inspect the substring further, match substrings with conditions using regular expressions, and search for substrings in pandas.
REAL PYTHON course

Building a Python Compiler and Interpreter
This article starts the journey of building a compiler and interpreter for the Python programming language, in Python. You’ll learn all about tokenizing, parsing, compiling, and interpreting.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

TIL: Django Constraints
Constraints in Django allow you to further restrict how data is managed in the database. This quick post covers how to use the CheckConstraint and UniqueConstraint classes in Django.
SARAH ABDEREMANE

PEP 733: An Evaluation of Python’s Public C API
This is an informational PEP describing the shared public view of the C API in Python. It talks about why the C API exists, who the stakeholders are, and problems with the interface.
PYTHON.ORG

What Stage Startup Offers the Best Risk-Reward Tradeoff?
A deep dive on the success rate statistics of startups in the US with analysis on what joining at different stages means to a stock package payout.
BILLY GALLAGHER

Let’s Make a Silly JSON-like Parser
This article goes into deep detail on how you would construct a JSON parser in Python. If you’re new to parsing, this is a great place to start.
ARUN MANI J

Rust vs. Go, Java, and Python in AWS Lambda Functions
A performance comparison of JSON parsing in AWS Lambda functions using Rust, Go, Java, and Python.
CLIFF CROSLAND

Everything You Can Do With Python’s bisect
Learn how to optimize search and keep your data sorted in Python with the bisect module
MARTIN HEINZ • Shared by Martin Heinz


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

uapi: Microframework for HTTP APIs
GITHUB.COM/TINCHE

queryish: Data Queries Following Django’s QuerySet API
GITHUB.COM/WAGTAIL

grablinks: Extract Links From a Remote HTML Resource
GITHUB.COM/THE-REAL-TOKAI

Bottle: Lightweight WSGI Micro Web Framework
BOTTLEPY.ORG

FunASR: Speech Recognition Toolkit
GITHUB.COM/ALIBABA-DAMO-ACADEMY

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
November 15, 2023

PyData Bristol Meetup
November 16, 2023

PyData Karlsruhe #8
November 16, 2023

PyLadies Dublin
November 16, 2023

Hamburg Python Pizza
November 17 to November 18, 2023

PyCon ID 2023
November 18 to November 20, 2023

PyCon Chile 2023
November 24 to November 27, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.