#469 – APRIL 20, 2021
View in Browser »
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 →
METIS sponsor
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
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)
Software Engineer (New York, NY, USA)
Data Engineer (Seattle, WA, USA)
Software Development Engineer (Indianapolis, IN, USA)
TOC Logistics International, Inc.
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.ME sponsor
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
collie_recs: Deep Learning Hybrid Recommender Systems in PyTorch
GITHUB.COM/SHOPRUNNER • Shared by Nathan Jones
simplematch: Minimal, Super Readable String Pattern Matching
GITHUB.COM/TFELDMANN • Shared by Thomas Feldmann
Events
Real Python Office Hours (Virtual)
April 21, 2021
REALPYTHON.COM
GeoPython 2021
April 22 – 24, 2021
GEOPYTHON.NET
PyCon Israel 2021 (Virtual)
May 2 – 3, 2021
PYCON.ORG.IL
PyCon 2021 (Virtual)
May 12 – 18, 2021
PYCON.ORG
DjangoCon Europe 2021 (Virtual)
June 2 – 6, 2021
DJANGOCON.EU
PyCon India 2021
September 17 – 20, 2021
PYCON.ORG
Happy Pythoning!
This was PyCoder’s Weekly Issue #469.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]
from Planet Python
via read more
No comments:
Post a Comment