#607 – DECEMBER 12, 2023
Exploring Code Reviews in Python and Automating the Process
What goes into a code review in Python? Is there a difference in how a large organization practices code review compared to a smaller one? What do you do if you’re a solo developer? This week on the show, Brendan Maginnis and Nick Thapen from Sourcery return to talk about code review and automated code assistance.
REAL PYTHON podcast
Using Polars in a Pandas World
Pandas has far more third-party integrations than Polars. Learn how to use those libraries with Polars dataframes.
ITAMAR TURNER-TRAURING
Stay One Step Ahead: Zero-Day Vulnerabilities Playbook
Equip yourself with proactive planning tips to effectively prepare for any zero-day on the horizon with Snyk’s Zero-Day Vulnerabilities Playbook 📖. Follow along this guide and gain insights into the lifecycle of zero-days, recent attack trends 🚨, and the risks they pose →
SNYK.IO sponsor
Python Gets Its First Community Communications Manager
This article recaps an interview with Marie Nordin, the PSF’s first Community Communications Manager.
DAVID CASSEL
Python 3.12.1 Released
CPYTHON DEV BLOG
Django Bugfix Release: 4.2.8
DJANGO SOFTWARE FOUNDATION
An Open Letter to the Python Software Foundation
PYTHONAFRICA.BLOGSPOT.COM
Python Jobs
Senior Python Architect and Tech Lead (America)
Six Feet Up
Software Engineer – Intern (Summer 2024) (Dallas, TX, USA)
Causeway Capital Management
More Python Jobs >>>
Articles & Tutorials
Single and Double Underscores in Python Names
In this tutorial, you’ll learn a few Python naming conventions involving single and double underscores (_). You’ll learn how to use this character to differentiate between public and non-public names in APIs, write safe classes for subclassing purposes, avoid name clashes, and more.
REAL PYTHON
After-Hours Work and Decreased Productivity
Slack has done studies on its employee’s productivity and found that those who log off at the end of the workday have 20% higher productivity scores than those who don’t. This article details the findings. Associated HN discussion.
SLACK
The New Developer Nation Survey is Live
Join forces with thousands of Devs worldwide! Take part in the Developer Nation Survey and influence the future of the developer ecosystem. Every respondent will get a virtual goodie bag packed with free resources and the chance to win amazing prizes →
SLASHDATA LTD sponsor
How to Deploy a Python Flask App With Heroku
This tutorial shows you how to build a simple Flask app that is primed and ready to deploy to Heroku. Once the bare bones are built, it guides you through the setup process on GitHub and Heroku so that you can start making automatic deploys in no time.
DANIEL EASTERMAN • Shared by AppSignal
Safer, Not Later
This opinion piece by Glyph talks about the “move fast and break things” mentality expounded by Silicon Valley. He discusses the history, why we got there, and how “safer, not later” might be better.
GLYPH LEFKOWITZ
How Google Takes the Pain Out of Code Reviews
Google’s internal code review tool “Critique” includes AI-powered improvements, and has 97% dev satisfaction. This article attempts to discuss why as well as pointing to Google’s OSS equivalent.
EINGEER’S CODEX
Building Predictive Models: Logistic Regression in Python
Want to learn how to build predictive models using logistic regression? This tutorial covers logistic regression in depth with theory, math, and code to help you build better models.
BALA PRIYA C • Shared by Bala Priya C
Debugging CSRF Failed Errors in Django
The most likely cause of a 403 Forbidden error in Django is falling foul of the CSRF protection. This article explains how to debug this problem and what you need to do to fix it.
TIM SCHILLING
The Fanout Pattern Explained
The fanout pattern is one where a single task replaces itself with a variable number of other tasks. This article covers how that happens in Celery and what that entails.
TIM SCHILLING
Building a Small REPL in Python
Learn how to write your own REPL by building on top of the one that comes with Python. With a few lines of code you can customize Python’s REPL environment as your own.
MAX BERNSTEIN
Don’t Mock Python’s HTTPX
HTTPX is a popular alternative to the requests library. James writes how using mock
to test it can be problematic, and suggests an alternative approach.
JAMES BENNETT
Learn How to Build an AI Agent Using Reinforcement Learning
AI-curious? Join us on Wed, Dec 13, at 6:30pm PST for a unique chance to learn how to build an AI Agent. Sr Research Scientist Randy Cogill will give a demo of using Reinforcement Learning to train an agent on Gymnasium (OpenAI Gym). Sign up now!
INTERVIEW KICKSTART sponsor
What Is *args
and How Do You Use It?
This article explains what *args
means in Python and how to use it in your own functions.
RODRIGO GIRÃO SERRÃO
Security Developer-in-Residence Year End Report
A summary of the activities of the PSF’s Security Developer-in-Residence over 2023.
SETH LARSON
Projects & Code
subtitle: Subtitle Generation for Seamless Content Translation
GITHUB.COM/INNOVATORVED
flask-muck: RESTful APIs Using Flask and SqlAlchemy
GITHUB.COM/DTIESLING
invenv: Python in Automatically Created Virtual Environments
GITHUB.COM/JSNJACK • Shared by Yauhen Shulitski
PyNest: FastAPI Framework Like NestJS
GITHUB.COM/PYTHONNEST
Google-Colab-Selenium: Selenium in Colab Notebooks!
GITHUB.COM/JPJACOBPADILLA
Events
Weekly Real Python Office Hours Q&A (Virtual)
December 13, 2023
REALPYTHON.COM
PyCon Thailand 2023
December 15 to December 17, 2023
PYCON.ORG
Python Atlanta
December 15, 2023
MEETUP.COM
Chattanooga Python User Group
December 15 to December 16, 2023
MEETUP.COM
FlaskCon 2023
December 16 to December 18, 2023
FLASKCON.COM
Happy Pythoning!
This was PyCoder’s Weekly Issue #607.
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 ]
Source:: PyCoder’s