Level Up Your Python by Reading Code, Need-to-Know Django Template Tags, Python Music Theory, and More

#469 – APRIL 20, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Learn by Reading Code: Python Standard Library Design Decisions Explained
Along your Python learning journey, someone may have told you that a great way to level up your skills is to read code written by other people. That’s definitely true, but it’s not easy to find good sources of code to read and study. Python offers some advantages here because not only is the code open source, but the discussion surrounding design decisions is public, too.
ADRIAN

Learn Text Classification With Python and Keras
Learn about Python text classification with Keras. Work your way from a bag-of-words model with logistic regression to more advanced methods leading to convolutional neural networks. See why word embeddings are useful and how you can use pretrained word embeddings. Use hyperparameter optimization to squeeze more performance out of your model.
REAL PYTHON course

30% Savings on New Online Flex Bootcamps - Apply by 5/17
Join an Online Flex Data Science & Analytics Bootcamp and work on your own schedule with on-demand lectures, while still getting dedicated 1:1 instructor support. You’ll also get focused career support until you’re hired. Ready to start your journey →
METISsponsor

Fluent in Django: 8 Django Template Tags You Should Know
The Django template language has some powerful features that can simplify your templates and solve a number of problems. Learn about eight template tags that you might not have heard of in this listicle that’s full of practical examples.
GIRL THAT LOVES TO CODE

Python 3.10 Will Include Improved Error Messages
If you mistype an attribute name, you’ll get suggestions from existing attributes!
TWITTER.COM/PYBLOGSAL

The PSF Is Hiring a Python Packaging Project Manager!
PYTHON SOFTWARE FOUNDATION

Flask 2.0 Is Coming Soon and You Can Help Test It
REDDIT

Google Becomes First Ever Visionary Sponsor for the PSF
TWITTER.COM/THEPSF


Discussions


PEP 563, PEP 649, and the Future of pydantic
Python 3.7 introduced postponed evaluation of type annotations behind the from future import __annotations__ switch, a feature originally proposed in PEP 563. Libraries like pydantic, used extensively in the popular FastAPI framework, have found it difficult to support PEP 563, which is set to become the default in Python 3.10. A new PEP aims to alleviate some of the issues, but sentiment is mixed.
GITHUB.COM/SAMUELCOLVIN

Why Does Python Return [15] for [0xfor x in (1, 2, 3)]?
If you thought this unusual expression would return an error, you’re not alone. There’s actually a lot of nuance to how this works, and would probably trip up even experienced Python devs. See this tweet from Ned Batchelder for even more discussion.
STACK OVERFLOW


Python Jobs


Intermediate Python Developer (Boulder, CO, USA)
UPLIGHT

Software Engineer (New York, NY, USA)
TRUVERIS

Data Engineer (Seattle, WA, USA)
DOXO

Software Development Engineer (Indianapolis, IN, USA)
TOC LOGISTICS INTERNATIONAL, INC.

More Python Jobs >>>


Articles & Tutorials


Basic Music Theory in ~200 Lines of Python
Music has always had a close relationship with mathematics and makes heavy use of repeated patterns and formulas. These characteristics make music ripe for investigation with code. This article covers some of the basics of Western music theory with examples in Python. The article is quite accessible — no knowledge of reading sheet music needed! After you’ve read the article, check out the discussion on Hacker News.
MANOHAR VANGA

OrderedDict vs dict and Object Oriented Programming in Python vs Java
Are you looking for a bit of order when working with dictionaries in Python? Are you aware that the Python dict has changed over the last several versions and now keeps items in order? Could you learn more about object-oriented programming in Python by comparing it to another language? Find out more in this week’s installment of the Real Python Podcast.
REAL PYTHON podcast

Python Jobs With Relocation Assistance
Want to work abroad? Check out this selection of Python jobs with relocation packages! All the roles listed are open to international applicants. Job locations: Canada, the UK, Germany, the Netherlands, Finland, Czechia, Japan, etc.
RELOCATE.MEsponsor

Understanding and Generating a UPC-A Barcode Using Python
Have you ever wondered how the barcodes you see on products work? Did you know that the first barcodes originated from Morse code? This article teaches you how UPC-A barcodes, one of the current barcode standards, work and how you can create them from scratch using Python.
YASOOB KHALID

Deploying a Python Flask Example Application Using Heroku
In this step-by-step tutorial, you’ll learn how to create a Python Flask example web application and deploy it using Heroku. You’ll also learn how to set up Heroku Pipelines to create a deployment workflow with staging and production environments.
REAL PYTHON

Build a Python Directory Tree Generator for the Command Line
In this step-by-step project, you’ll create a Python directory tree generator application for your command line. You’ll code the command-line interface with argparse and traverse the file system using pathlib.
REAL PYTHON


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 →

splitflap: DIY Split-Flap Display
GITHUB.COM/SCOTTBEZ1

TTS: A Deep Learning Toolkit for Text-to-Speech
GITHUB.COM/COQUI-AI

PyCall.jl: Call Python Functions From the Julia Language
GITHUB.COM/JULIAPY

collie_recs: Deep Learning Hybrid Recommender Systems in PyTorch
GITHUB.COM/SHOPRUNNER • Shared by Nathan Jones

bodywork-core: MLOps Tool for Deploying Machine Learning Projects to Kubernetes
GITHUB.COM/BODYWORK-ML

simplematch: Minimal, Super Readable String Pattern Matching
GITHUB.COM/TFELDMANN • Shared by Thomas Feldmann

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) April 21, 2021

⋅ GeoPython 2021 April 22 – 24, 2021

⋅ PyCon Israel 2021 (Virtual) May 2 – 3, 2021

⋅ PyCon 2021 (Virtual) May 12 – 18, 2021

⋅ DjangoCon Europe 2021 (Virtual) June 2 – 6, 2021

⋅ PyCon India 2021 September 17 – 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

Python Types in the Wild, Making Packages in 2021, How to Contribute to Python, and More

Tuesday, April 13, 2021

Python 3 Types in the Wild: A Tale of Two Type Systems #468 – APRIL 13, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3 Types in the Wild: A Tale of Two Type Systems This academic paper

Buying a House With Python, OOP in Python vs. Java, What is Werkzeug, and More

Tuesday, April 6, 2021

How I Beat the Berlin Rental Market With a Python Script #467 – APRIL 6, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo How I Beat the Berlin Rental Market With a Python Script Learn how one Python

Full-Text Search in 150 Lines, OrderedDict vs. dict, Checking on the Suez Canal, and More

Wednesday, March 31, 2021

Many Models Workflows in Python #466 – MARCH 30, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Many Models Workflows in Python Learn how to organize models into dataframes for exploratory data

Python Testing Style Guide, Performance Management, Pygame Asteroids Clone, and More

Tuesday, March 23, 2021

Python Testing Style Guide #465 – MARCH 23, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Python Testing Style Guide Need a quick yet thorough guide to testing? This excellent resource is for you.

Pythonic Pattern Matching, PyQt vs. PySide, Speeding Up Pandas, and More

Tuesday, March 16, 2021

Pattern Matching Tutorial for Pythonic Code #464 – MARCH 16, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Pattern Matching Tutorial for Pythonic Code Structural pattern matching is coming in

You Might Also Like

iOS Cocoa Treats

Thursday, February 27, 2025

View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. Creating Custom SF Symbols Introduced in 2019 with 1000

Mapped | Average Wages in OECD Countries 📊

Thursday, February 27, 2025

This infographic visualizes the highest and lowest average annual wages across 34 OECD countries, showing how wages vary globally. View Online | Subscribe | Download Our App Great stories start with

Welcome to How-To Geek Newsletters

Thursday, February 27, 2025

How-To Geek Logo Hi, Welcome to the How-To Geek newsletters! We're delighted to have you as part of our community! Our newsletter includes highlights of the best stories, instructive how-to manuals

iOS Dev Weekly – Issue 700

Thursday, February 27, 2025

It's Issue 700, and I wish I had something different to talk about this week. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

This Week in Rust #587

Thursday, February 27, 2025

Email isn't displaying correctly? Read this e-mail on the Web This Week in Rust issue 587 — 19 FEB 2025 Hello and welcome to another issue of This Week in Rust! Rust is a programming language

📧 Building a Better MediatR Publisher With Channels (and why you shouldn't)

Thursday, February 27, 2025

​ Building a Better MediatR Publisher With Channels (and why you shouldn't) Read on: m​y website / Read time: 6 minutes The .NET Weekly is brought to you by: Using MassTransit with RabbitMQ or

Polkadot is inevitable ⭕️

Thursday, February 27, 2025

PBA course for politicians, nomination poolers can now vote, Polkadot Discord airdrop, and others ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

How to stop spam emails and calls

Thursday, February 27, 2025

Hey there, Want to know why you keep getting spam calls and emails? Even though you keep blocking the numbers... And you keep unsubscribing and reporting the emails as spam... It's because your

🛜 How to Quit Social Media Without Quitting the Internet — Tips for Sharing Sensitive Files on Windows 11

Thursday, February 27, 2025

Also: Gaming With a Data Cap Sucks, These 7 Tips Can Help How-To Geek Logo February 22, 2025 Did You Know Mail-order ant farms don't include a queen ant because it's illegal under US federal

Apple Drops iCloud's Advanced Data Protection in the U.K. Amid Encryption Backdoor Demands

Thursday, February 27, 2025

THN Daily Updates Newsletter cover ⚡ LIVE WEBINAR ➟ Opening the Fast Lane for Secure Deployments Learn How to Align Dev and Sec Teams Without Compromising Speed and Security Download Now Sponsored