Issue #548

Python 3.11 Released, Dry Run Mode in Django, Defensive Coding, and More

Oct. 25, 2022

Python 3.11 Released, Dry Run Mode in Django, Defensive Coding, and More
#548 – OCTOBER 25, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python 3.11: Cool New Features for You to Try
Python 3.11 is out! In this article, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python.
REAL PYTHON

Implementing a “Dry Run Mode” for Importing Data in Django
In data import processes it’s often useful to have a “dry run” mode that runs through the process but doesn’t actually save the data. This can allow you to check for validity and gather statistics, such as how many records already exist in the database. This post looks at how to implement a dry run mode in Django using database transactions.
ADAM JOHNSON

Python Tutorial: Start Working With Time-Series Data in InfluxDB
If your data changes every minute, MySQL isn’t going to cut it. Learn how to level up your time-series data analysis with a time-series database. This article covers how to set up open-source InfluxDB using Python, reading and writing data, and how to handle updates. Read the guide →
INFLUXDATAsponsor

Fostering Community & Managing the 3.11 Release
Does your company have a plan for growing an internal Python community? What are the attributes to look for when bringing someone into your department? This week on the show, Pablo Galindo Salgado returns to talk about building community through the Python Guild at Bloomberg and managing the release of Python 3.11.
REAL PYTHON podcast

Defensive Coding Guide: Python
This guide is part of a multi-language document describing how to write security conscious code. Check out the recommendations for Python from the Fedora Project.
FEDORAPROJECT.ORG

PyCascades 2023 Call for Proposals
PYCASCADES CONFERENCE


Discussions


Single-Quoted or Double-Quoted Strings in Python?
BOB BELDERBOX

No Gold at the End of the Remote Working Rainbow?
HACKER NEWS


Python Jobs


Senior Software Engineer (Python, Qt, Linux)
VIOLET 📍 ANYWHERE

Content Operations Manager
REAL PYTHON 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Build a Tic-Tac-Toe Game Engine With an AI Player in Python
In this step-by-step tutorial, you’ll build a universal game engine in Python with tic-tac-toe rules and two computer players, including an unbeatable AI player using the minimax algorithm. You’ll also create a text-based graphical front end for your library and explore two alternative front ends.
REAL PYTHON

5 Techniques to Make Your Loops Pythonic
If you’re coming from other programming languages, your approach to loops may not be idiomatic. This article covers five techniques to write more Pythonic loops, including examples for range(), zip(), reversed(), enumerate(), and sorted().
TANSEER SAJI

Scout APM: Built For Developers, By Developers
Performance issues are a pain. But with Scout’s APM tool, you can pinpoint performance and stability issues in Python applications with ease. Scout’s tracing logic detects the exact line of code causing the performance abnormality—fixing the issue before customers ever notice →
SCOUT APMsponsor

Matplotlib Coordinates: Graphing Math Functions in Python
Setting up Matplotlib coordinates and X and Y axes can be tricky. This article walks you through plotting both linear and nonlinear functions, allowing you to create graphs in Python the way you might in a graphing calculator.
JOHN LOCKWOOD

Python Basics: Numbers and Math
In this video course, you’ll learn the math that you’ll need for your Python programming journey. This includes integers and floating-point numbers, arithmetic operators, and string formatting for numbers.
REAL PYTHON course

Python Command Line Tricks
Using python -m you can do all sorts of things from the command line, including: starting a webserver, opening a browser, parsing JSON, compressing files and much more.
MARTIN HEINZ • Shared by Martin Heinz

Find Your Next Tech Job Through Hired
Hired has 1000s of companies, from startups to Fortune 500s, who are hiring developers, data scientists, mobile engineers, and more. Create a profile with your skills and preferences for hiring managers to reach you directly. Sign up today!
HIREDsponsor

Improving Code Quality With Linting in Python
Linting checks your code for errors before you run it. This hands-on article explores how to perform quick linting checks in Python using Pylint.
KESHAV MALIK

A New (?) Way of Drawing Boxes in the Terminal
With clever use of some of the Unicode border characters you can build a better box around your text without any color bleeding.
WILL MCGUGAN


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 →

sqlite-fts4: Python Functions for Working With SQLite FTS4
GITHUB.COM/SIMONW

explainable-ai: Best Practices on Explainable AI
GITHUB.COM/SQUAREDEV-IO

190 Python Projects With Source Code
AMAN KHARWAL

django-pgtransaction: Postgres Transaction Replacement
GITHUB.COM/OPUS10 • Shared by Paul Gilmartin

python-preloaded: Bundle Python & Preloaded Modules
GITHUB.COM/ALBERTZ

📆🐍 Upcoming Python Events


PyKla Monthly Meetup
October 26, 2022

Heidelberg Python Meetup
October 26, 2022

Weekly Real Python Office Hours Q&A (Virtual)
October 26, 2022

Python at Scale
October 27 to October 29, 2022

Global AI Developer Days
October 31, 2022

PyCon PL 2022
November 3 to November 7, 2022

PyCon Sweden
November 3 to November 5, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.