Issue #601

Ptpython, Ruff Formatter, Lambdas, and More

Oct. 31, 2023

Ptpython, Ruff Formatter, Lambdas, and More
#601 – OCTOBER 31, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Boost Your Coding Productivity With Ptpython
Learn how to enhance your Python development workflow with auto-completion, syntax highlighting, history navigation, and more. In this tutorial, you’ll walk through the fundamentals of ptpython, covering installation, basic usage, and advanced features.
REAL PYTHON

The Ruff Formatter: Python’s Fastest Formatter
You may have come across ruff the linter which has been on the scene for about a year, well it recently added formatting to its features. This article shows you how, including the configuration option to allow single-quote-style.
MIKE DRISCOLL

The Morning Paper for Hacker News Readers
Want a byte-sized version of Hacker News that takes a few minutes to read?  Try TLDR’s free daily newsletter. TLDR covers the most interesting tech, startup, and coding stories.  No sports, politics, or weather.  Read by 1,250,000 software engineers, founders, and tech workers.  Subscribe for free →
TLDRsponsor

What Are Lambda Expressions?
This post teaches you what lambda expressions are and how they get used in Python. It shows several examples and also covers when to avoid them.
TREY HUNNER

PyCon US 2024 Call for Proposals
PRETALX.COM

Django 5.0 Beta 1 Released
DJANGO SOFTWARE FOUNDATION


Discussions


PEP 703 (Making the GIL Optional in CPython) Acceptance
PYTHON.ORG


Articles & Tutorials


Efficient String Concatenation in Python
In this tutorial, you’ll learn how to concatenate strings in Python. You’ll use different tools and techniques for string concatenation, including the concatenation operators and the .join() method. You’ll also explore other tools that can also be handy for string concatenation in Python.
REAL PYTHON

From Chaos to Cohesion: Architecting Your Own Monorepo
A monorepo approach means keeping the code from all your projects in one place. It requires changing your tooling approach, but means better dependency management. This article shows you how to build a simple python monorepo using GitHub Actions as a CI/CD tool.
ANGEL REY AND HANNA JODREY • Shared by JDC

Innovate Faster With Ready-Made Edge AI Reference Kits
Build AI solutions that run efficiently at the edge. Raise throughput, lower latency, and speed up AI inference with the OpenVINO toolkit and our Edge AI Reference Kits.
INTEL CORPORATIONsponsor

PEP 727: Documentation in Annotated Metadata
There is no standard for providing doc strings for parameters, return values, variables, or type aliases. Tools like Sphinx and numpydoc have their own mechanisms. This PEP proposes adding typing.Doc as part of the Annotated type syntax.
PYTHON.ORG

Higher Order Functions in Python
Higher-order functions in Python take functions as arguments, or return them as results, making code more readable and reusable. This brief article shows you the concept and highlights examples in the standard library.
TECHBEAMERS

Deploying Conda-Based Docker Images
Conda is a popular package manager for science, data science, and machine learning, however, using it to install packages can lead to large Docker images. Here are some steps to get it back down to a reasonable size.
DILLON NIEDERHUT • Shared by Dillon Niederhut

Build a Blog From Scratch With Django
In this Django beginner project, you’ll build a blog from scratch with the Django web framework. You’ll leverage the Django admin site and explore how to work with forms so your visitors can comment on your posts.
REAL PYTHON

Why Python Is Better Than C++ for Algotrading
Even in high speed trading, time to market can be more important than the performance of the code. This blog post from a trading systems programmer outlines why he prefers Python to write his code.
PROFITVIEW.NET

Python Is a Compiled Language
Python is interpreted, but it interprets compiled code. This distinction can be confusing to students and this instructor does a deep dive on where the line between the concepts sit.
EDDIE ANTONIO

When Should You Upgrade to Python 3.12?
Python 3.12 has been released—when should you switch to using it?
ITAMAR TURNER-TRAURING


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 →

riffusion: Stable Diffusion for Real-Time Music Generation
GITHUB.COM/RIFFUSION

video-retalking: Lip Synch-ing for Talking Head Video Editing
GITHUB.COM/OPENTALKER

pypipe: Python Pipe Command Line Tool
GITHUB.COM/BUGEN

ExecuTorch: Run PyTorch Programs on Mobile
PYTORCH.ORG

📆🐍 Upcoming Python Events


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

Canberra Python Meetup
November 2, 2023

Sydney Python User Group (SyPy)
November 2, 2023

PyDelhi User Group Meetup
November 4, 2023

Toufu
November 5 to November 6, 2023

DjangoCon Africa 2023
November 6 to November 12, 2023

PyCon Ireland 2023
November 11 to November 13, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.