Issue #508

Object Subscriptions Deep-Dive, Django Survey Results, Pip Caching, and More

Jan. 18, 2022

Object Subscriptions Deep-Dive, Django Survey Results, Pip Caching, and More
#508 – JANUARY 18, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Unravelling “[]” Subscriptions in Python
“It’s quite possible you’re not familiar with this formal term, but you are probably familiar with the syntax: the square brackets used for indexing lists and tuples (sequence[4]), accessing the value of a specified dictionary (dictionary["key"]), etc. To cover this topic we will break up into three parts: general subscriptions, slicing, and multiple arguments.”
BRETT CANNON

Working With Pipenv
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and requirements.txt. In this course, you’ll go over what problems Pipenv solves and how to manage your Python dependencies with it.
REAL PYTHON course

Start Monitoring Service Dependencies to Eliminate Latency and Errors
Datadog APM empowers developer teams to identify anomalies, resolve issues, and improve application performance. Begin collecting stack traces, visualizing them as flame graphs, and organizing them into profile types, such as CPU, I/O, and more. Try Datadog APM free with a 14 day trial →
DATADOGsponsor

A Probabilistic Programming Language in 70 Lines of Python
Learn how Probabilistic Programming Languages (PPLs) work by building a simple one in Python.
ANDREA COGNOLATO

Python News: What’s New From December 2021?
The Python community elected its fourth steering council in December 2021. In this article, you’ll catch up on the results of the election as well as news about new maintenance releases of Python and about end-of-life for Python 3.6.
REAL PYTHON

Django Developers Survey 2021 Results
DSF + JETBRAINS

FastAPI 0.72.0 Released
TIANGOLO.COM


Discussions


IPython 8 CLI Runs “Black” Autoformatter on REPL Code
This Twitter thread explores concerns about using the IPython REPL with autoformatting enabled for education purposes and interactive math.
RAYMOND HETTINGER

Can Someone Explain _ and __ in Python Clearly for Me?
REDDIT


Python Jobs


Senior Full-Stack Web Developer
MONETIZEMORE 📍 ANYWHERE

Python Engineer Web Scraping
NEWSCATCHER 📍 ASIA, TX, AMERICA

PyCoder's Weekly Curator and Podcast Co-Host
REAL PYTHON 📍 ANYWHERE

Senior Software Engineer
BREW 📍 ANYWHERE

Sr DevOps Engineer
TARA TECHINCAL SOLUTIONS 📍 SAN JOSE, CA, USA

Senior Software Engineer
BRAVELY 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Problems With Testing Python Pre-Releases and Pip Caching
“Pip was caching a wheel built using CFFI and Python 3.11.0-alpha2 and was installing that same wheel for the now Python 3.11.0-alpha3 both on our local machines and in our test suite. By clearing the pip cache on our machines and our CI we were able to get a passing test suite.”
SETH MICHAEL LARSON

Launching Python, Virtual Environments, and Locking Dependencies With Brett Cannon
Would you like a simple command to launch your Python programs using v the newest version of the language installed on your machine? This week on the show, we continue our conversation with Brett Cannon. Brett discusses his project, the Python Launcher for Unix.
REAL PYTHON podcast

Application Performance Monitoring, Built for Developers by Developers
Scout is an application performance monitoring tool designed to help Python developers find and fix performance issues quickly. With unlimited seats and applications, users of Scout’s APM tool find that anyone can be a performance expert. Click to sign up for your free 14-day trial today →
SCOUT APMsponsor

Build and Submit HTML Forms With Django (Part 4 of 4)
In the final part of this tutorial series, you’ll continue to build out a social network with Django. You’ll wrap up by working with Django forms, learning how to display helpful error messages, setting up dynamic URLs in your app, and more.
REAL PYTHON

Introduction to Data Verification & Storage With Pydbantic
Walk through the basics of pydbantic and discover how to create, query, update, and remove data from models. Review how pydbantic handles migrations after detecting any changes and how to integrate pydbantic with Redis for caching.
JOSHUA JAMISON • Shared by Joshua Jamison

5 Ways to Use Python on an iPad
“It turns out that it’s actually pretty easy to code in Python on the iPad, especially if you’re willing to work in Jupyter Notebooks. […] Here are five ways you can code in Python on any iPad right now.”
DAVID AMOS • Shared by David Amos

Generate Your Text Files With Python Using Cog
An interview with Ned Batchelder about the interesting history of the Cog project and how you can use it to automate the work of generating text with arbitrary Python code.
PODCAST.__INIT__ podcast

Don’t Wrap Instance Methods With the functools.lru_cache Decorator
Wrapping instance method in Python suffers from one giant gotcha—class instances don’t get garbage collected properly. This post explores that.
REDOWAN DELOWAR • Shared by Redowan Delowar

Analyzing Stock Data Near Events With Pandas
Stock market returns are heavily impacted by some events, like FOMC announcements, and we can use Pandas to understand this impact.
MATT WRIGHT

What’s Your Favorite Programming Language?
Take the Developer Nation survey, share your views and make an impact on the developer ecosystem. Plus, you get a chance to win cool prizes, licenses, gaming accessories, vouchers and many more.
SLASHDATA LTDsponsor

Make Simple Mocks With SimpleNamespace
“When testing Python code you may need a mock object. That’s okay! But what’s the best way to build a simple mock?”
ADAM JOHNSON

Autodocumenting Makefiles
DANIEL ROY GREENFELD


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 →

av_hubert: A Self-Supervised Learning Framework for Audio-Visual Speech
GITHUB.COM/FACEBOOKRESEARCH

tplot: Create Text-Based Graphs in the Terminal
GITHUB.COM/JEROENDELCOUR

mae: PyTorch Implementation of Masked Autoencoders
GITHUB.COM/FACEBOOKRESEARCH

python_communism: Initiating the Communist Revolution in Each of Our Python Modules
GITHUB.COM/JOKTEUR

teyit: Formatter for Your Python Unit Tests
GITHUB.COM/ISIDENTICAL

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
January 18, 2021

PyData Bristol Meetup
January 20, 2022

Python Northwest
January 20, 2022

PyLadies Dublin
January 20, 2022

MadPUG
January 20 to January 21, 2022

Karlsruhe Python User Group (KaPy)
January 21, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.