Issue #408

PEP 614 (Decorators Syntax), Finding the Perfect Python Code Editor, Effective Testing, and More

Feb. 18, 2020

PEP 614 (Decorators Syntax), Finding the Perfect Python Code Editor, Effective Testing, and More
#408 – FEBRUARY 18, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Finding the Perfect Python Code Editor
Find your perfect Python development setup with this review of Python IDEs and code editors. Writing Python using IDLE or the Python REPL is great for simple things, but not ideal for larger programming projects. With this course you’ll get an overview of the most common Python coding environments to help you make an informed decision.
REAL PYTHON video

Overloading Functions in Python
Python does not natively support function overloading (having multiple functions with the same name.) See how you can implement and add this functionality using common language constructs like decorators and dictionaries. Related discussion on Hacker News.
ARPIT BHAYANI

Python Developers Are in Demand on Vettery
Vettery is an online hiring marketplace that’s changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today →
VETTERYsponsor

PEP 614 (Draft): Relaxing Grammar Restrictions on Decorators
“Python currently requires that all decorators consist of a dotted name, optionally followed by a single call. This PEP proposes removing these limitations and allowing decorators to be any valid expression.” For example, this would become a valid decoration: @buttons[1].clicked.connect
PYTHON.ORG

Building Good Python Tests
A collection of testing maxims, tips, and gotchas, with a few pytest-specific notes. Things to do and not to do when it comes to writing automated tests.
CHRIS NEJAME • Shared by Chris NeJame

Types at the Edges in Python
Adding more strict typing around the edges of a Python system for better error messages and design, using Pydantic and mypy. Interesting read!
STEVE BRAZIER

Python 3.9 StatsProfile
The author of the profiling API improvements coming to Python 3.9 demonstrates the feature and explains how it was added to CPython.
DANIEL OLSHANSKY

Robots and Generative Art and Python, Oh My!
How to make cool looking plotter art with NumPy, SciPy, and Matplotlib.
GEOFFREY BRADWAY

PyCon US 2020 Tutorial Schedule
PYCON.ORG

Python 3.8.2rc2 Is Now Available for Testing
PYTHON INSIDER


Python Jobs


Senior Python/Django Engineer (London, UK)
ZEGO

Python Developer (Malta)
GAMING INNOVATION GROUP

Senior Python Software Engineer (London, UK)
TESSIAN

Senior Backend Engineer (Denver, CO)
CYBERGRX

Senior Software Developer (Vancouver, BC, Canada)
ABCELLERA

More Python Jobs >>>


Articles & Tutorials


Python Community Interview With Brett Slatkin
Brett Slatkin is a principal software engineer at Google and the author of the Python programming book Effective Python. Join us as we discuss Brett’s experience working with Python at Google, refactoring, and the challenges he faced when writing the second edition of his book.
REAL PYTHON

My Unpopular Opinion About Black Code Formatter
“In this post, I will try to gather all my thoughts on the topic of automatic code formatting and why I personally don’t like this approach.”
LUMINOUSMEN.COM

How to Build a Blockchain in Python
Blockchain, the system behind Bitcoin, is immutable, unhackable, persistent and distributed, and has many potential applications. Check out ActiveState’s tutorial on how to build a blockchain in Python and Flask using a pre-built runtime environment →
ACTIVESTATEsponsor

Uniquely Managing Test Execution Resources Using WebSockets
Learn about managing resources for test execution, while building an asynchronous WebSocket client-server application that tracks them using Python and Sanic.
CRISTIAN MEDINA

Refactoring and Asking for Forgiveness
“Recently, I had a great interaction with one of my coworkers that I think is worth sharing, with the hope you may learn a bit about refactoring and Python.”
CHRIS MAY

Guide to Python’s Newer String Format Techniques
In the last tutorial in this series, you learned how to format string data using the string modulo operator. In this tutorial, you’ll see two more items to add to your Python string formatting toolkit. You’ll learn about Python’s string format method and the formatted string literal, or f-string.
REAL PYTHON

Full Text Search With Postgres and Django [2017]
“In this post I will walk through the process of building decent search functionality for a small to medium sized website using Django and Postgres.”
SCOTT CZEPIEL

Python Tools for Record Linking and Fuzzy Matching
Useful Python tools for linking record sets and fuzzy matching on text fields. These concepts can also be used to deduplicate data.
CHRIS MOFFITT

Classify Valentine’s Day Texts With TensorFlow and Twilio
Use TensorFlow and Machine Learning to classify Twilio texts into two categories: “loves me” and “loves me not.”
LIZZIE SIEGLE • Shared by Lizzie Siegle

Tour of Python Itertools
Explore the itertools and more_itertools Python libraries and see how to leverage them for data processing.
MARTIN HEINZ • Shared by Martin Heinz

Python Static Analysis Tools
Find and fix the bugs and code smells in your Python code with the popular tools for analyzing code.
LUMINOUSMEN.COM

Getting the Most Out of Python Collections
A guide to comprehensions, generators and useful functions and classes.
NICK THAPEN

Blackfire Profiler Public Beta Open—Get Started in Minutes
Blackfire Profiler now supports Python, through a Public Beta. Profile Python code with Blackfire’s intuitive developer experience and appealing user interface. Spot bottlenecks in your code, and compare code iterations profiles.
BLACKFIREsponsor

Autoencoders With Keras, TensorFlow, and Deep Learning
ADRIAN ROSEBROCK

Why Python Is the Best Programming Language for a Startup
GLEB PUSHKOV

Dissecting a Web Stack
LEONARDO GIORDANI

Experience Report on a Large Python-To-Go Translation
ERIC S. RAYMOND

Introduction to Kafka With Docker and Python
DORON VAINRUB

Guide to Reading Excel (xlsx) Files in Python
ERIK MARSJA

Modularity for Maintenance
GLYPH


Projects & Code


pycharm-security: PyCharm Plugin to Find Security Holes in Your Python Projects
GITHUB.COM/TONYBALONEY

Deadsnakes PPA Builds for Debian in Docker
The Deadsnakes PPA project builds older and newer Python versions not found on a specific Ubuntu release. Originally based on the Debian source packages, they can still be built on Debian and not just on Ubuntu.
GITHUB.COM/JHERMANN • Shared by Jürgen Hermann

stdlib-property-tests: Property-Based Tests for the Python Standard Library (And Builtins)
GITHUB.COM/ZAC-HD

django-guid: Inject a GUID (Correlation-ID) Into Every Log Message in a Django Request
GITHUB.COM/JONASKS

ursina: A Game Engine Powered by Python and Panda3d
GITHUB.COM/POKEPETTER

VaultSSH: CLI Tool for Signing SSH Public Keys Using the Vault SSH Endpoint
GITHUB.COM/JMGILMAN

icalendar_light: iCalendar Event Reader
GITHUB.COM/IDLESIGN • Shared by pythonz

IRedis: Terminal Client for Redis With Auto-Complete and Syntax Highlighting
IREDIS.IO

📆🐍 Upcoming Python Events


⋅ PyCon Namibia 2020 February 18 to February 21, 2020

⋅ PyData Bristol Meetup February 20, 2020

⋅ Python Northwest February 20, 2020

⋅ PyLadies Dublin February 20, 2020

⋅ Open Source Festival February 20 to February 23, 2020

⋅ PyCon Belarus 2020 February 21 to February 23, 2020
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.