Practical PEP 8, Logging Best Practices, "async for", and More

#490 – SEPTEMBER 14, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Applying PEP 8 in Practice
“Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8] style guide, but the discussion indicates that the advice in it may have been stretched further than intended.”
JAKE EDGE

How to Log in Python Like a Pro
Learn what good logging is, and how you should implement it in Python. Comes with meaningful examples and rules of thumb on what and how to log.
GUILHERME LATROVA

Receive a $5 Donation to the OSS of Your Choice When You Start Your Free Scout APM Trial Today
Scout is an APM designed to provide the data insights necessary for any developer to become a performance pro. Find and fix observability issues before the customer ever sees them by connecting your error reporting and APM data on one platform, with Scout’s new error monitoring feature add-on →
SCOUT APMsponsor

Python News: What’s New From August 2021?
August 2021 was an eventful month in the world of Python. In this article, you’ll get up to speed on everything that happened in the past month, including three new Python releases.
REAL PYTHON

Unravelling async for Loops
Python’s async for statement allows convenient iteration over asynchronous iterators. In this article you’ll see how async for loops work behind the scenes.
BRETT CANNON

Introducing Pedalboard: Spotify’s Audio Effects Library for Python
SPOTIFY ENGINEERING BLOG


Discussions


Black Autoformatter Core Team AMA
The core team behind the popular Python autoformatter Black did an “ask me anything” (AMA) thread on Reddit.
REDDIT


Python Jobs


Senior Backend Software Engineer (Remote)
CLAY

Data Engineer Python & PostgreSQL (Newport Beach, CA)
RESEARCH AFFILIATES

Sr Backend Developer (Amsterdam, Netherlands)
GUTS TICKETS

Lead Developer Python (Remote)
OPTELLO

More Python Jobs >>>


Articles & Tutorials


Python Is a Bad Programming Language
“I’ll say it again: Python is a bad programming language, and the only reason it’s so popular today is because Google pushed it so hard in the first decade of the 2000s.” Related discussion of this controversial article on Hacker News.
MICHAEL MORENO opinion

Using Data Classes in Python
One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions. With data classes, you don’t have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.
REAL PYTHON video

Data Elixir: Data Science Newsletter
Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web →
DATA ELIXIRsponsor

Advantages of Completing Small Python Projects
Are you a beginner or intermediate Python programmer who has made it through some of the fundamentals? Have you tried to tackle a big project but got stuck and frustrated? Completing some small projects might be the answer. This week on the show, author Al Sweigart.
REAL PYTHON podcast

Common Ways for Parallelizing Python Code
This article reviews some common options for parallelizing Python code, including multiprocessing, specialized libraries, ipython parallel, and ray.
MICHAEL GALARNYK • Shared by Michael Galarnyk

A Python Guide to the Fibonacci Sequence
Explore the Fibonacci sequence in Python, which serves as an invaluable springboard into the world of recursion, and learn how to optimize recursive algorithms in the process.
REAL PYTHON

DataStax Astra DB – Built on Apache Cassandra. Get 80 Gigabytes of Storage Free Every Month
Need Global Scale on a Startup Budget? DataStax Astra DB is a multi-cloud DBaaS built on Apache Cassandra. Painless APIs, always free for developers, & no credit card required.
DATASTAXsponsor

All The Ways to Compress and Archive Files in Python
How to compress, decompress, and manage archives and files with Python in all the formats you might ever need.
MARTIN HEINZ • Shared by Martin Heinz

Writing Unit Tests for AWS Lambda Functions in Python
EMILY SHEA

How to Crawl the Web With Scrapy
MATT BASS

R vs Python: What’s the Real Difference Between R and Python?
SUSAN JOHNSON

Python 3.10 Simplifies Unions in Type Annotations
MIKE DRISCOLL

FastAPI With Async SQLAlchemy, SQLModel, and Alembic
MICHAEL HERMAN • Shared by Michael Herman


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 →

openskill.py: Python Implementation of Weng-Lin Bayesian Ranking
GITHUB.COM/OPENDEBATES

plusplus: Enable ++x and --x Expressions in Python
GITHUB.COM/BORZUNOV

huracan: Open Source Aircraft Engine Simulation Python Package
GITHUB.COM/ALOPEZRIVERA

klara: Automatic Test Case Generation for Python and Static Analysis Library
GITHUB.COM/USAGITONEKO97

Python Standalone Builds: Self-Contained, Highly-Portable Python Distributions
PYTHON-BUILD-STANDALONE.READTHEDOCS.IO

gamesbyexample: Collection of Text-Based Games in Python and Other Languages
GITHUB.COM/ASWEIGART

pyreports: Create Complex Report From Various Sources
GITHUB.COM/MATTEOGUADRINI • Shared by Matteo Guadrini

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours Q&A (Virtual) September 15, 2021

⋅ PyCon India 2021 (Virtual) September 17 to September 21, 2021

⋅ PyWeek 32 Game Jam (Virtual) September 19 to September 20, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

PEP 668, Python for Personal Finance, EAFP vs LBYL, and More

Tuesday, September 7, 2021

PEP 668: Graceful Cooperation Between External and Python Package Managers #489 – SEPTEMBER 7, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 668: Graceful Cooperation Between External and

Python == #1, Instagram's Custom Python Interpreter, PyCon 2022 Volunteering, and More

Tuesday, August 31, 2021

Python Ranks #1 in IEEE "Top Programming Languages" #488 – AUGUST 31, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Python Ranks #1 in IEEE “Top Programming Languages” “Python dominates

Efficient Queues and Stacks, 25 Pandas Function You Might Not Know, Graph Data Analysis, and More

Tuesday, August 24, 2021

Python's `deque`: Implement Efficient Queues and Stacks #487 – AUGUST 24, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Python's deque : Implement Efficient Queues and Stacks In this step-

Python Launcher for UNIX, Python in the Browser, Data Visualization with HoloViz, and More

Tuesday, August 17, 2021

Introducing the Python Launcher for Unix #486 – AUGUST 17, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Introducing the Python Launcher for Unix Python Core Developer and Steering Council member

What To Do When You Botch a PyPI Release, E2E Testing Approaches, Walrus Operator Use Cases, And More

Tuesday, August 10, 2021

What to Do When You Botch a Release on PyPI #485 – AUGUST 10, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo What to Do When You Botch a Release on PyPI Mistakes happen to everyone. But what do you

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your