Issue #396

PyCon 2020, KeyErrors, Unicode Struggles, and More

Nov. 26, 2019

PyCon 2020, KeyErrors, Unicode Struggles, and More
#396 – NOVEMBER 26, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PyCon 2020 Registration Is Now Open
PyCon is the largest annual gathering for the community that uses and develops the open-source Python programming language. April 15–23 in Pittsburgh. Pro-tip: Get your early bird tickets today.
PYCON.ORG

Python KeyError Exceptions and How to Handle Them
KeyError exceptions are often caused by a bad key lookup in a dictionary, but there are a few other situations when a KeyError can be raised as well. Knowing how to handle these exceptions is essential to writing good Python code.
REAL PYTHON video

Automate & Standardize Code Reviews For Python
Take the hassle out of code reviews - Codacy flags errors automatically, directly from your Git workflow. Customize standards on coverage, duplication, complexity & style violations. Use in the cloud or on your servers for 30 different languages. Get started for free →
CODACYsponsor

Pragmatic Unicode (2012)
Timeless tutorial that teaches the basics of Unicode, and how both Python 2 and Python 3 work, as well as some key tips on solving Unicode problems.
NED BATCHELDER

Guido van Rossum on How Python Makes Thinking in Code Easier
A conversation with the creator of the world’s most popular programming language on removing brain friction for better work.
DROPBOX.COM

What’s New in Python 3.9a1
The first draft changelog for Python 3.9 alpha 1 is out, if you want to stay on top of the latest CPython developments.
PYTHON.ORG

Raise Better Exceptions in Python
How to include contextual information in your exceptions for easier root cause analysis.
MOSHE ZADKA

Testing Django Migrations
A web app outage post-mortem with useful tips and tools for testing Django migrations.
NIKITA SOBOLEV


Python Jobs


Senior Python Engineer
STYLIGHT GMBH 📍 MUNICH, GERMANY

Senior Python/Django Developer
SENDCLOUD 📍 EINDHOVEN, NETHERLANDS

Django Full Stack Web Developer
ZEITCODE 📍 AUSTIN, TX

More Python Jobs >>>


Articles & Tutorials


Python Community Interview With Brian Okken
Brian Okken is perhaps best known as the author of Python Testing with pytest, as well as being the host of two Python-related podcasts. Find out more about the man behind the voice, his new meetup in Portland, and the advice he’d like to give to anyone who’s new to testing software.
REAL PYTHON

Issues With Python 3 byte/str Separation
The original title of the article is The Incredible Disaster of Python 3 so this was probably written with some frustration still fresh on someone’s mind. Nevertheless I think it’s important to look at aspects of Python that developers might be struggling with and that could be improved. Related discussion on Hacker News.
JOHN GOERZEN opinion

Python 2 EOL: Are You Prepared? Take ActiveState’s Survey For a Chance to Win a Drone
Python 2 End of Life is coming soon. Take ActiveState’s 5-minute survey to let them know how you’re preparing for the change. You’ll get the final results, plus the chance to win a camera drone. Take the Survey →
ACTIVESTATEsponsor

Invalid Syntax in Python: Common Reasons for SyntaxError
In this step-by-step tutorial, you’ll see common examples of invalid syntax in Python and learn how to resolve the issue. If you’ve ever received a SyntaxError when trying to run your Python code, then this is the guide for you.
REAL PYTHON

Teaching Python Episode 33: Interview With Eric Matthes
Kelly and Sean interview Eric Matthes, author of Python Crash Course, about how he began programming, what led him to teaching, and the important lessons from Python to be learned both inside and outside of the classroom.
TEACHINGPYTHON.FM podcast

Detecting “Thinking Intensity” in the Human Brain, With Python
How to get started with fNIRS sensing data specifically oxygenated hemoglobin “HbO2/HbO” data for analyzing a data stream from a sensor.
JOHN DAVID CHIBUK

Measure and Improve Python Code Performance With Blackfire.io
Profile in development, test/staging, and production, with no overhead for end users! Blackfire supports any Python version from 2.7.x and 3.x. Find bottlenecks in wall-time, I/O, CPU, memory, HTTP requests, and SQL queries.
BLACKFIREsponsor

Counting FLOPS and Other CPU Counters in Python
How the python-papi package can be used to measure the FLOP requirements of any section of a Python program.
BOJAN NIKOLIC

Symbolic Maths in Python
ALEXANDRU GRIS

Logging in Qt Python GUI Applications
PLUMBERJACK.BLOGSPOT.COM


Projects & Code


munggoggo: Message Based Async Agent Framework
GITHUB.COM/SYSID • Shared by Thomas Weber

pytest-quarantine: Manage Expected Test Failures
GITHUB.COM/ENERGYSAGE

dovpanda: Directions Overlay for Working With Pandas
GITHUB.COM/DOVPANDA-DEV

blueberry-python-data: Data Experiments With fNIRS
GITHUB.COM/BLUEBERRYXTECH • Shared by John David Chibuk

Numba: JIT Compiler for NumPy Code
PYDATA.ORG

tsaug: Time Series Augmentation
GITHUB.COM/ARUNDO

Mitogen: Library for Writing Distributed Self-Replicating Programs
NETWORKGENOMICS.COM

superdelegate: Shorthand for Delegating Methods and Properties to Child Objects
PYPI.ORG • Shared by Jim Anderson

autohooks: Git Hooks With Python
GITHUB.COM/GREENBONE • Shared by Björn Ricks

📆🐍 Upcoming Python Events


PythonRio Meetup
November 30, 2019

Melbourne Python Users Group, Australia
December 2, 2019

Heidelberg Python Meetup
December 4, 2019
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.