Issue #610

Flask, Python JIT, Discoveries in 2023, and More

Jan. 2, 2024

Flask, Python JIT, Discoveries in 2023, and More
#610 – JANUARY 2, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Build a Scalable Flask Web Project From Scratch
In this tutorial, you’ll explore the process of creating a boilerplate for a Flask web project. It’s a great starting point for any scalable Flask web app that you wish to develop in the future, from basic web pages to complex web applications.
REAL PYTHON

JIT Coming to Python 3.13
Slides related to the upcoming JIT commit for Python 3.13. Note, GitHub paginates it if you don’t download it, so click the “More Pages” button to keep reading.
GITHUB.COM/BRANDTBUCHER

The Biggest Discoveries in Computer Science in 2023
Although 2023 was full of AI news in computer science, it wasn’t the only news. This article summarizes the breakthroughs in 2023.
BILL ANDREWS

PyCon US Received Record Number of Submissions
MARIATTA


Python Jobs


Senior Python Architect and Tech Lead
SIX FEET UP 📍 AMERICA

Python Tutorial Editor
REAL PYTHON 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Python, C, Assembly – 2,500x Faster Cosine Similarity
Cosine similarity is a check to see if two vectors point in the same direction, regardless of magnitude. This test is frequently used in some machine learning algorithms. This article details the various steps in speeding up the code, starting with vanilla Python and going all the way down to hand tuned assembly language.
ASH VARDANIAN

PyCoder’s Weekly 2023 Wrap Up
It’s been a fascinating year for the Python language and community. PyCoder’s Weekly included over 1,500 links to articles, blog posts, tutorials, and projects in 2023. Christopher Trudeau is back on the show this week to help wrap up everything by sharing some highlights and Python trends from across the year.
REAL PYTHON podcast

Python’s Soft Keywords
Python includes soft keywords: tokens that are important to the parser but can also be used as variable names. This article shows you what a soft keyword is and how to find them in Python 3.12 (both the easy and hard way).
RODRIGO GIRÃO SERRÃO

The State of Developer Ecosystem in 2023
This is a cross-language developer survey of tools used in the industry. It includes questions about AI adoption, cloud tools, and more. 54% of respondents use Python as their most frequent language.
JETBRAINS

Build an Instant Messaging App With Django
This articles shows you how to take advantage of some the newer async mechanisms in Django to build a messaging app. Things that used to require a third party library are now part of the framework.
TOM DEKAN • Shared by Tom Dekan

Majority and Frequent Elements: Boyer Moore and Misra Gries
The Boyer-Moore majority vote algorithm looks for an element that appears more than n/2 times in a sequence using O(n) time. This article shows you how it works using Python code.
GITHUB.COM/NAUGHTYCONSTRICTOR • Shared by Mohammed Younes ELFRAIHI

Why Should You Become an Engineering Manager?
Many developers dread the idea of becoming a manager, but there are some things you can only learn by doing. This article outlines why management might be the right thing for you.
CHARITY MAJORS

Banish State-Mutating Methods From Data Classes
Redowan has strong opinions on reserving dataclasses for data-class purposes only: their methods should have no data modification side-effects. This article outlines why.
REDOWAN DELOWAR

Django 5.0 Is Out!
Django 5 was recently released and this in-depth article covers what changed, how to upgrade from an earlier version, and how the Django version numbering system works.
ERIC MATTHES

How Many CPU Cores Can You Actually Use in Parallel?
“Figuring out how much parallelism your program can use is surprisingly tricky.” This article shows you why it is complicated and what you can determine.
ITAMAR TURNER-TRAURING

TIL: Forcing pip to Use virtualenv
A quick tip on how to set an environment variable so that pip refuses to install a package unless in an active virtual environment.
DANIEL ROY GREENFIELD

Configuration in Python Applications
This post talks about how to store configuration for your script and how and when to load the information into your program.
ROBERT RODE

Raise the Right Exceptions
Knowing when to raise the right exception is important, but often you don’t have to: Python might do it for you.
JAMES BENNETT


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 →

pyapp: Build Self-Bootstrapped Python Applications
GITHUB.COM/OFEK

django-tui: Inspect and Run Django Commands in a TUI
GITHUB.COM/ANZE3DB

cicada: FOSS, Cross-Platform GitHub Actions
GITHUB.COM/CICADA-SOFTWARE

marker: Convert PDF to Markdown
GITHUB.COM/VIKPARUCHURI

Amphion: Toolkit for Audio, Music, and Speech Generation
GITHUB.COM/OPEN-MMLAB

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
January 3, 2024

Canberra Python Meetup
January 4, 2024

Sydney Python User Group (SyPy)
January 4, 2024

PiterPy Meetup
January 9, 2024

Leipzig Python User Group Meeting
January 9, 2024

Building Python Communities Around Python for Kids
January 10 to January 11, 2024
Happy Pythoning!
Copyright © 2024 PyCoder’s Weekly, All rights reserved.