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

Ranked | The Most Satisfying vs. Most Reliable Car Brands in 2024 🚙

Monday, December 23, 2024

The most reliable car brands are rarely the most satisfying to own, according to recent Consumer Reports survey data. View Online | Subscribe | Download Our App Presented by: Find the megatrends

Bitcoin Enthusiasts Are Letting Altcoins Pass by

Monday, December 23, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 23, 2024? The

Last Minute Gifts from Walmart

Monday, December 23, 2024

ZDNET ZDNET Sponsored Message In Partnership with Walmart December 23, 2024 exclusive offer Walmart Last-minute gifts from Walmart Shop Now Walmart The tech you've been wishing for–at everyday low

15 ways AI saved me weeks of work in 2024

Monday, December 23, 2024

ZDNET's product of the year; Windows 11 24H2 bug list updated -- ZDNET ZDNET Tech Today - US December 23, 2024 AI applications on various devices. 15 surprising ways I used AI to save me weeks of

Distributed Locking: A Practical Guide

Monday, December 23, 2024

If you're wondering how and when distributed locking can be useful, here's the practical guide. I explained why distributed locking is needed in real-world scenarios. Explored how popular tools

⚡ THN Weekly Recap: Top Cybersecurity Threats, Tools and Tips

Monday, December 23, 2024

Your one-stop-source for last week's top cybersecurity headlines. The Hacker News THN Weekly Recap The online world never takes a break, and this week shows why. From ransomware creators being

⚙️ OpenA(G)I?

Monday, December 23, 2024

Plus: The Genesis Project ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 12/23/2024

Monday, December 23, 2024

New blogs from Syncfusion Introducing the New WinUI Kanban Board By Karthick Mani This blog explains the features of the new Syncfusion WinUI Kanban Board control introduced in the 2024 Volume 4

Import AI 395: AI and energy demand; distributed training via DeMo; and Phi-4

Monday, December 23, 2024

What might fighting for freedom in an AI age look like? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LockBit Ransomware Developer Charged for Billions in Global Damages

Monday, December 23, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest