Issue #502

Advent of Python, Error Message Styles, Django 4.0, and More

Dec. 7, 2021

Advent of Python, Error Message Styles, Django 4.0, and More
#502 – DECEMBER 7, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Advent of Code: Solving Your Puzzles With Python
Advent of Code is an online advent calendar that shares new programming puzzles each day from December 1st to the 25th. In this tutorial, you’ll learn why solving programming puzzles can be beneficial and how you can get started with Advent of Code using Python.
REAL PYTHON

Error Message Style Guides of Various Languages
“PyPy has been trying to produce good SyntaxErrors and other errors for a long time. CPython has also made an enormous push to improve its SyntaxErrors in the last few releases. These improvements are great, but the process feels somewhat arbitrary sometimes. To see what other languages are doing, I asked people on Twitter whether they know of error message style guides for other programming languages.”
CARL FRIEDRICH BOLZ-TEREICK

Connect, Integrate, & Automate Your Data—From Python, or Any Other Application or Tool
CData makes it easier to unlock the value of data — simplifying connectivity between applications and data sources. Our SQL-based connectors streamline data access making it easy to access real-time data from on-premise and cloud databases, SaaS, APIs, NoSQL and more. Visit cdata.com to learn more →
CDATA SOFTWAREsponsor

Binary, Bytes, and Bitwise Operators in Python
In this course, you’ll learn how to use Python’s bitwise operators to manipulate individual bits of data at the most granular level. With the help of hands-on examples, you’ll see how you can apply bitmasks and overload bitwise operators to control binary data in your code.
REAL PYTHON course

Django 4.0 Release Notes
New built-in RedisCache backend, forms are now rendered using the template engine to enhance customization, Python standard library’s zoneinfo is now the default timezone implementation.
DJANGO SOFTWARE FOUNDATION

A Message From the PSF’s Outgoing Executive Director
PYTHON SOFTWARE FOUNDATION

CPython 3.10.1 Released
CPYTHON DEV BLOG


Discussions


Best Way to “Swap” Words (Multiple Characters) in a String?
STACK OVERFLOW

What Are Your Bad Python Habits?
REDDIT

How Much Was Python Used From 1991 to 2006? What For?
HACKER NEWS


Python Jobs


Python Django Consultant
CREDENTIVE SECURITY 📍 UNITED STATES

Senior Python Developer
SIX FEET UP 📍 ANYWHERE

Senior Backend Engineer
BMAT 📍 ANYWHERE

Senior Backend Software Engineer
CLAY 📍 ANYWHERE

Senior Python Engineer
FLASHPOINT 📍 ANYWHERE

Senior Software Engineer
TOMO 📍 UNITED STATES

Python Backend Engineer
MADEWITHLOVE 📍 HASSELT, BELGIUM

More Python Jobs >>>


Articles & Tutorials


Prettify Your Data Structures With Pretty Print in Python
The pprint module, Python’s data pretty printer, is a useful part of the standard library. You can work with it for debugging data structures and increasing the readability of your output. In this tutorial, you’ll find that pprint is both straightforward to use and also highly customizable.
REAL PYTHON

Story of Jython [2002]
“The story of Jython begins one summer in Ashland, Oregon. I was juggling in a park behind a theater when I met Pavel Curtis, a scientist at Xerox PARC, who wanted to pass clubs. While we were juggling together he told me about a wonderful new programming language called Python. Writing code in Python felt like writing the sort of natural informal code that developers would use when they wanted to quickly share ideas. It was executable pseudo-code.”
JIM HUGUNIN

Shortcut Provides Speedy Task Management, Reporting, and Collaboration for Software Teams
Shortcut is project management built for developers. Whether you’re a startup that iterates quickly by providing every engineer with a free pallet of Red Bull, or a large org that has strict ship dates to hit, give us a try for free →
SHORTCUTsponsor

Discussing Type Hints, Protocols, and Ducks in Python With Luciano Ramalho
There seem to be three kinds of Python developers: those unaware of type hints or have no opinion, ones that embrace them, and others who have an allergic reaction at the mention of them. Python is famously a dynamically typed language, but there are advantages to adding type hints to your code. This week on the show, it’s Luciano Ramalho discussing his recent talk titled, “Type hints, protocols, and good sense.”
REAL PYTHON podcast

How to Create a Computer Virus in Python
“I was relaxing on a beach during my summer leave when I received a mail from a reader that asked me if it is technically possible to write a virus using Python. The short answer: YES. The longer answer: yes, BUT…”
DAVIDE MASTROMATTEO • Shared by Davide

Get Your Next Python Job through Hired
Hired is home to thousands of companies from startups to Fortune 500s actively hiring developers, data scientists, mobile engineers & more. Create a profile & let hiring managers reach out to you. It’s completely free for job-seekers, so don’t wait!
HIREDsponsor

Writing Simple Python GUIs for Your Command-Line-Phobe Coworkers
“These are some of the lessons I’ve learned on how to package rudimentary Python scripts into simple Windows GUIs for your […] coworkers to use.”
NASH REILLY

Creating a Better Flamegraph Visualization
Flamegraphs are a great way to visualize performance and memory bottlenecks, but with a little tweaking, you can make them even more useful.
ITAMAR TURNER-TRAURING

Python’s None Problem, and How Mypy Helps You Deal With It
JR HEARD


Projects & Code


emacs-python-coverage: Show Python Coverage Information Directly in Emacs
GITHUB.COM/WBOLSTER

pip-audit: Audits Python Environments and Dependency Trees for Known Vulnerabilities
GITHUB.COM/TRAILOFBITS

numpy-financial: Financial Functions in NumPy
NUMPY.ORG

PyXIRR: Collection of Financial Functions
GITHUB.COM/ANEXEN • Shared by Alexander

latexrun: A 21st Century LaTeX Wrapper
GITHUB.COM/ACLEMENTS

pkgversions: Update Python Package Versions During Development
GITHUB.COM/HASII2011 • Shared by Humberto Sanchez II

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
December 8, 2021

Python Atlanta
December 9, 2021

Python Miami
December 11 to December 12, 2021

DFW Pythoneers 2nd Saturday Teaching Meeting
December 11, 2021

Edmonton Python User Group
December 13, 2021

IndyPy Monthly Meetup
December 14, 2021

TuPLE (Tucson Python Language Enthusiasts)
December 14, 2021

Edmonton.py: The Edmonton Python User Group
December 14, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.