Issue #554

Comprehensions, pathlib, Guido Interview, and More

Dec. 6, 2022

Comprehensions, pathlib, Guido Interview, and More
#554 – DECEMBER 6, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Using Python’s pathlib Module
In this video course, you’ll learn how to effectively work with file system paths in Python 3 using the pathlib module in the standard library.
REAL PYTHON course

A Crash Course in Comprehensions and Generators
A great collection of code snippets that showcase the power and flexibility of list comprehensions, generators and related constructs.
PETE FISON • Shared by Pete FIson

TelemetryHub by Scout APM, A One-Step Solution for Open-Telemetry
Imagine a world where you could see all of your logs, metrics, and tracing data in one place. We’ve built TelemetryHub to be the simplest observability tool on the market. We supply peace of mind by providing an intuitive user experience that allows you to easily monitor your application →
SCOUT APMsponsor

Guido van Rossum: Python and the Future of Programming
An in-depth, 3 hour interview with Guido van Rossum by Lex Fridman.
LEX FRIDMAN podcast


Discussions


PEP 683: Immortal Objects, Using a Fixed Refcount
Currently all CPython objects have some memory allocated to maintain state, even those that are immutable. PEP 683 proposes “Immortal Objects” and this thread discusses the proposal.
PYTHON.ORG

What Can Python Do That R Can’t?
REDDIT


Python Jobs


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

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

More Python Jobs >>>


Articles & Tutorials


Multiprocessing Race Conditions in Python
A race condition happens when parallel tasks attempt to execute code at the same time and the results are dependent on order of execution. Finding race conditions can be challenging, this article gives some hints as to how to find the different kinds of race conditions when coding with the multiprocessing module.
JASON BROWNLEE

Preparing Data to Measure ML Model Performance
How do you prepare a dataset for machine learning (ML)? How do you go beyond cleaning the data and move toward measuring how the model performs? This week on the show, Jodie Burchell, developer advocate for data science at JetBrains, returns to talk about strategies for better ML model performance.
REAL PYTHON podcast

Connect, Integrate & Automate Your Data - From Python or Any Other Application
At CData, we simplify connectivity between the application and data sources that power business, making it easier to unlock the value of data. Our SQL-based connectors streamline data access making it easy to access real-time data from on-premise or cloud databases, SaaS, APIs, NoSQL and Big Data →
CDATA SOFTWAREsponsor

How to Get a List of All Files in a Directory With Python
In this tutorial, you’ll be examining a couple of methods to get a list of files and folders in a directory with Python. You’ll also use both methods to recursively list directory contents. Finally, you’ll examine a situation that pits one method against the other.
REAL PYTHON

Python Type Hints: Case Study on parsy
This deep article talks about Luke’s journey to try to add type checking and why he often gives up. It walks through what was needed to add types to parsy, one of the libraries he maintains and how it compared to other similar libraries.
LUKE PLANT

Save Using update_fields for Better Django Performance
The update_fields argument to the .save() call restricts the underlying SQL to just the named fields. For some conditions this can mean a performance boost. This article shows where it can be helpful and when it might lead to bugs.
REDOWAN DELOWAR

7 Useful Python Libraries You Should Use in Your Next Project
This article introduces you to 7 useful Python libraries: PySnooper, schedule, MechanicalSoup, ftfy, rpyc, pyglet, and rope. Read on to learn how these can help you with your next project.
FARHAN TANVIR

Python Linter Comparison 2022
There are many linter choices for Python, this article covers a lot of them: Pylint, Pyflakes, Flake8, autopep8, Bandit, Prospector, Pylama, Pyroma, Black, Mypy, Radon, and mccabe.
AL SWEIGART

A Mastodon Opportunity for Developers
As the article starts: “There’s a lot of interest in Mastodon at the moment, For Reasons.” This article talks about how to play with the Mastodon API to embed content.
ANDY PIPER

Time Series Data: Do You Need a Purpose-Built Database
Is time series data just any dataset with a timestamp field? How do time series workloads differ from OLTP or full text search? Get all the answers in this technical e-book from the creators of InfluxDB. Download PDF.
INFLUXDATAsponsor

Python and .NET, an Ongoing Saga
Python.NET has released a new version, so Nikos has written an article that explores the history of Microsoft, .NET, and Python including the state of Iron Python.
NIKOS VAGGALIS

Reddit Monitoring With Python
A step-by-step tutorial on creating a Reddit keyword monitoring tool with Python and praw. Learn how to run a Python script to watch keywords on a subreddit.
LEON WEI


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 →

jupyterlite: Wasm Powered Jupyter Running in the Browser
GITHUB.COM/JUPYTERLITE

torchscale: Transformers at Any Scale
GITHUB.COM/MICROSOFT

python-easter-eggs: Easter Eggs and Hidden Jokes in Python
GITHUB.COM/ORKOHUNTER

lumi: Nano Framework to Convert Functions Into a REST API
GITHUB.COM/TANMOY741127

django-relativity: More Expressive ORM Relationships
GITHUB.COM/ALEXHILL

📆🐍 Upcoming Python Events


STL Python
December 7, 2022

NZPUG-Auckland Coding Evening
December 7, 2022

Weekly Real Python Office Hours Q&A (Virtual)
December 7, 2022

Python Atlanta
December 8, 2022

PyCon Bolivia 2022
December 9 to December 11, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.