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

Key phrases

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

PHPWeekly March 28th 2024

Thursday, March 28, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 28th March 2024 Hi everyone, The long weekend is coming up, and if

Hulu officially joins Disney+

Thursday, March 28, 2024

The Morning After It's Thursday, March 28, 2024. A month after taking full ownership of Hulu last November, Disney started beta testing integration with Disney+. Today, Hulu on Disney+ is

Post from Syncfusion Blogs on 03/28/2024

Thursday, March 28, 2024

New blogs from Syncfusion Chart of the Week: Creating a .NET MAUI Column Chart to Visualize the Corporate Investment in AI By Saiyath Ali Fathima M Let's visualize the data on corporates'

New ZenHammer Attack Bypasses Rowhammer Defenses on AMD CPUs

Thursday, March 28, 2024

THN Daily Updates Newsletter cover Webinar: From Blind Spots to Bulletproof: Secure Your Apps with Shared Responsibility From oversight to overwatch: Discover the art of bulletproof app security with

Top Tech 🏆 Synology BeeStation NAS Review — Testing Anker's EverFrost Dual-Zone Powered Cooler

Thursday, March 28, 2024

Also: We Review the Arlo Essential Indoor Cam 2nd Gen, and More! How-To Geek Logo March 28, 2024 📩 Get the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

Last Chance

Thursday, March 28, 2024

Hello there, I wanted to follow up on our last email to let you know that our introductory iPhone Life Insider offer will expire tomorrow! Currently, a subscription to iPhone Life Insider costs $9.99/

Edge 381: Google DeepMind's PrompBreeder Self-Improves Prompts

Thursday, March 28, 2024

The method combines chain of thoughts, plan and solve and evolutionary algorithms in a single mthod. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Anthropic beats GPT-4 🤖, Pixel 9 leaks 📱, the fight for AI talent 👨‍💻

Thursday, March 28, 2024

Anthropic's Claude 3 Opus has surpassed OpenAI's GPT-4 for the first time on Chatbot Arena Sign Up|Advertise|View Online TLDR Together With Dollar Flight Club TLDR 2024-03-28 Exclusive offer:

From Request to Response: How APIs Work – Beginners Guide

Thursday, March 28, 2024

In the vast expanse of the digital ecosystem, APIs (Application Programming Interfaces) act as critical conduits, facilitating seamless conversations between different software platforms. From clicking

Elastic 8.13 is here: Amazon Bedrock in the AI Assistant for Observability

Thursday, March 28, 2024

Learn about Amazon Bedrock support within the Elastic AI Assistant for Observability ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ elastic | Search. Observe. Protect