Issue #549

First Match in a List, Memes With Pillow, When to Upgrade to 3.11, and More

Nov. 1, 2022

First Match in a List, Memes With Pillow, When to Upgrade to 3.11, and More
#549 – NOVEMBER 1, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How to Get the First Match From a Python List or Iterable
In this tutorial you’ll learn about the best ways to get the first match from a Python list or iterable. You’ll look into two different strategies, for loops and generators, and compare their performance. Then you’ll end up by creating a reusable function for all your first matching needs.
REAL PYTHON

Generating Memes and Infographics With Pillow
Pillow is great for doing image resizing, adding borders or composing. This makes it a natural fit for creating tools for memes and infographics. This step-by-step article shows you what Pillow code you need to write to turn any image into a meme.
PIOTR MALIŃSKI

Built for Seamless, Continuous Deployment - Platform.sh Is Your Web Fleet Management Solution
Platform.sh is a secure cloud hosting platform that allows you to effortlessly manage, monitor and optimize all your websites. With our solution, your development team can avoid wasting precious time updating your websites individually or fixing deployment bugs and focus on what truly matters →
PLATFORM.SHsponsor

When Should You Upgrade to Python 3.11?
Python 3.11 has been released, when should you switch to using it? This posting covers the complications you can run into when moving to the latest release of any Python and how to know when it is best for you to upgrade.
ITAMAR TURNER-TRAURING

Python 3.12.0 Alpha 1 Released
PYTHON.ORG

PyCon US 2023 Call for Proposals
PYCON.ORG


Discussions


Favorite New Python 3.11 Feature?
REAL PYTHON ON TWITTER

Python 3.11 Is Faster Than 3.8
HACKER NEWS


Python Jobs


Software Engineer - Weissman Lab
WHITEHEAD INSTITUTE FOR BIOMEDICAL RESEARCH 📍 CAMBRIDGE, MA, USA

Senior Software Engineer (Python, Qt, Linux)
VIOLET 📍 ANYWHERE

Content Operations Manager
REAL PYTHON 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Caching in Django Applications
Caching can make a big difference in the performance of your application. This blog post describes how to apply caching to a Django project and what the benefits are. It is part 4 in a series with entries on Django performance improvement for the database, your code, and your front-end.
ESTHER VAATI

Cool New Features in Python 3.11
In this video course, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python.
REAL PYTHON course

Deepgram Is the Preferred Speech-to-Text API of Python Developers
Engineers from companies like NASA, Spotify & Volley chose Deepgram’s speech-to-text API to automatically transcribe their audio with understanding features like summarization, topic detection and language detection.  Make the most of your audio data and get 200 hours of free transcription →
DEEPGRAMsponsor

Lambdas Don’t Support Type Hints, but That’s Okay
Python has no syntax to add type hints to lambdas, but that doesn’t mean you can’t use them in type-checked code. This post looks at how mypy can infer the types for lambdas, based on where they’re used.
ADAM JOHNSON

12 Factor Apps Revisited
The Twelve-Factor App methodology is a methodology for building software-as-a-service applications by Adam Wiggins. This article covers how it has evolved and what you can learn from it today.
MAHDI YUSUF

Simple, Sane, and Sensible Logging in Python
Get started with Logging in Python or deploy advanced, flexible loggers without the boiler-plate code. Learn all about log2d, a third-party wrapper for the Python logging library.
PETE FISON • Shared by Pete Fison

PyCon US 2022 Recap and Recording Announcement
This posting contains a recap of PyCon US 2022 along with links to their YouTube channel containing many of the talks from the conference.
PYCON.BLOGSPOT.COM

Deepnote is the Best Way to Collaborate Around Your Data
Explore data with Python & SQL from your browser. Add context with data visualizations and rich text editing. Share analysis with stakeholders by simply sending a link.
DEEPNOTEsponsor

How to Set Up WebSockets in Starlette
Starlette is a relatively new entrant to the world of Python web frameworks. This blog post talks about how you can set up (and test) a WebSocket backend using Starlette.
SIDDHANT GOEL • Shared by Siddhant Goel

Should You Use Custom Exceptions in Python?
The article discusses whether or not to use custom exceptions in Python development. It shows how to create custom exceptions and when they can be useful.
MARCIN KOZAK • Shared by Marcin


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 →

django-emoji: Django App for Using Emojis on Your Site
GITHUB.COM/GAQZI

pycopy: Lightweight Python Dialect
GITHUB.COM/PFALCON

inline-sql: Inline SQL in Any Python Program
GITHUB.COM/EKZHANG

reals: Library for Arithmetic With Real Numbers
GITHUB.COM/RUBENVANNIEUWPOORT

absurd-django: Django in Pyodide Experiment
GITHUB.COM/PATRICK91

📆🐍 Upcoming Python Events


STL Python
November 2, 2022

NZPUG-Auckland: Crafting Software
November 2, 2022

Heidelberg Python Meetup
November 2, 2022

Weekly Real Python Office Hours Q&A (Virtual)
November 2, 2022

PyCon PL 2022
November 3 to November 7, 2022

PyCon Sweden
November 3 to November 5, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.