Buffer Flushing, Async Bugs, SQLAlchemy 2.0, and More

#565 โ€“ FEBRUARY 21, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How to Flush the Output of the Python Print Function
In this tutorial, you’ll learn how to flush the output of Python’s print function. You’ll explore output stream buffering in Python using code examples and learn that output streams are block-buffered by default, and that print() with its default arguments executes line-buffered when interactive.
REAL PYTHON

The Heisenbug Lurking in Your Async Code
When using the create_task() function in asyncio it is very important to maintain a reference to the created tasks. Although this requirement is documented, it is easy to forget and can have some very hard to understand consequences.
WILL MCGUGAN

Leaving Serverless Postgres for Crunchy Bridge
Find out why vanilla Postgres is a more cost effective and simple way to manage your database than Postgres “compatible” databases. Read a customer case study on lowering costs, getting a better database experience, and better support on Crunchy Bridge โ†’
CRUNCHY DATAsponsor

What’s New in SQLAlchemy 2.0?
SQLAlchemy 2.0 was launched in January. This article reviews the latest changes, whether it is worth the upgrade, and how to go about it.
MIGUEL GRINBERG

PyCon US 2023 (Salt Lake City, Utah) Schedule Available
PYCON.BLOGSPOT.COM

Django Security Releases Issued: 4.1.7, 4.0.10, and 3.2.18
DJANGO SOFTWARE FOUNDATION


Discussions


Why Type Hinting Sucks!
REDDIT


Python Jobs


Software Engineer - Backend/Python (100% Remote)
CLOSE ๐Ÿ“ ANYWHERE

Python Video Course Instructor
REAL PYTHON ๐Ÿ“ ANYWHERE

Python Tutorial Writer
REAL PYTHON ๐Ÿ“ ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Latest Attack on PyPI Users, Crooks Are Getting Better
Over 400 new malicious packages have been uploaded to PyPI that use a malicious JavaScript extension to monitor infected machines for crypto-currency interactions with the intent of stealing credentials. Packages are named based on typos of many of the most popular PyPI downloads.
DAN GOODIN

PySport Open Source
This site is a collection of open source Python and R tools for sports analytics, including scrapers and API wrappers for a variety for sites, data plotting, and analysis. It is maintained by PySport.
PYSPORT.ORG

Show Open-Source Some Love by Joining The Big Fix 2023
Join Snyk between February 14 and March 14 to help make security x100 times better in 2023 with The Big Fix event! Find and fix vulnerabilities while networking with your fellow engineers. Register for free โ†’
SNYK.IOsponsor

Getters and Setters in Python
In this video course, you’ll learn what getter and setter methods are, how Python properties are preferred over getters and setters when dealing with attribute access and mutation, and when to use getter and setter methods instead of properties in Python.
REAL PYTHON course

Python Basics: Building Systems With Classes
In this video course, you’ll learn how to work with classes to build complex systems in Python. By composing classes, inheriting from other classes, and overriding class behavior, you’ll harness the power of object-oriented programming (OOP).
REAL PYTHON course

The Essential Django Deployment Guide
Going from “it works on my machine” to deploying to the public can be a daunting task. This guide details the choices between VPS and PaaS systems, how to choose, what the options are, and what you need to know to get your Django code live.
SAAS PEGASUS

The Dangers Behind Image Resizing
When training an ML model on image data you likely want smaller, consistently sized images. That means image processing in your pipeline, but the expectation that image resizing is the same across libraries can cause unforeseen problems.
ZURU.TECH

Should You Write a class Without @dataclass?
This article makes the argument that you should always use @dataclass for building classes in Python. Read on to understand why, and maybe respond to Glyph’s call-to-action to tell him if you think he’s wrong.
GLYPH LEFKOWITZ

Caching a Lot of Methods in Python
This article goes deep on functools.lru_cache() including all the arguments against using it, and how to argue with the arguments. Learn how to cache the results of your functions with a single line of code.
ADRIAN

Google OSS Project Python Style Guide
This is the style guide for any Google-originated open-source projects and a conversation on Hacker News about its content.
GOOGLE


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 โ†’

ApiLogicServer: Customizable Database Web App Projects
GITHUB.COM/VALHUBER

Pathfinding-Visualizer: Visualize Pathfinding With Pygame
GITHUB.COM/TAUSEEF-HILAL

django-prose: Wonderful Rich-Text Editing for Django
GITHUB.COM/WITHLOGICCO

CausalPy: Causal Inference in Quasi-Experimental Settings
GITHUB.COM/PYMC-LABS

๐Ÿ“†๐Ÿ Upcoming Python Events


PyCon Namibia 2023
February 21 to February 24, 2023

PyKla Monthly Meetup
February 22, 2023

Heidelberg Python Meetup
February 22, 2023

Weekly Real Python Office Hours Q&A (Virtual)
February 22, 2023

SPb Python Drinkup
February 23, 2023

PyLadies Amsterdam + MLOps.Community Meetup
February 23, 2023

PyCon PH 2023
February 25 to February 27, 2023

PyDelhi User Group Meetup
February 25, 2023
Happy Pythoning!
Copyright ยฉ 2023 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. ยท #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Monorepos, SpiffWorkflow, Functional Python, and More

Tuesday, February 14, 2023

Monorepos in Python #564 – FEBRUARY 14, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Monorepos in Python A monorepo is a source control pattern in some organizations where a single code

Wordle Clone, Wasm, Three Python Trends, and More

Tuesday, February 7, 2023

Build a Wordle Clone With Python and Rich #563 – FEBRUARY 7, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Build a Wordle Clone With Python and Rich In this step-by-step project, you'll build

Apache Airflow, Nox, Simulating Broken DB Connections, and More

Tuesday, January 31, 2023

Orchestrating Large and Small Projects With Apache Airflow #562 – JANUARY 31, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Orchestrating Large and Small Projects With Apache Airflow Have you

Time, Property-Based Pytest, Continuous Profiling, and More

Tuesday, January 24, 2023

How to Get and Use the Current Time in Python #561 – JANUARY 24, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo How to Get and Use the Current Time in Python In this tutorial, you'll be getting

Prototype Pollution, PEP 703, 2022's Most Popular, and More

Friday, January 20, 2023

PEP 703: Making the GIL Optional in CPython #560 – JANUARY 17, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 703: Making the GIL Optional in CPython This PEP proposes changes to the CPython

You Might Also Like

The Power of an Annual Review & Grammarly acquires Coda

Sunday, December 22, 2024

I am looking for my next role, Zen Browser got a fresh new look, Flipboard introduces Surf, Campsite shuts down, and a lot more in this week's issue of Creativerly. Creativerly The Power of an

Daily Coding Problem: Problem #1645 [Hard]

Sunday, December 22, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Implement regular expression matching with the following special characters: .

PD#606 How concurrecy works: A visual guide

Sunday, December 22, 2024

A programmer had a problem. "I'll solve it with threads!". has Now problems. two he ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

RD#486 (React) Things I Regret Not Knowing Earlier

Sunday, December 22, 2024

Keep coding, stay curious, and remember—you've got this ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

🎶 GIFs Are Neat, but I Want Clips With Sound — Your Own Linux Desktop in the Cloud

Sunday, December 22, 2024

Also: 9 Games That Were Truly Ahead of Their Time, and More! How-To Geek Logo December 22, 2024 Did You Know Dextrose is another name for glucose, so if you see it listed prominently on the ingredients

o3—the new state-of-the-art reasoning model - Sync #498

Sunday, December 22, 2024

Plus: Nvidia's new tiny AI supercomputer; Veo 2 and Imagen 3; Google and Microsoft release reasoning models; Waymo to begin testing in Tokyo; Apptronik partners with DeepMind; and more! ͏ ͏ ͏ ͏ ͏ ͏

Sunday Digest | Featuring 'The World’s 20 Largest Economies, by GDP (PPP)' 📊

Sunday, December 22, 2024

Every visualization published this week, in one place. Dec 22, 2024 | View Online | Subscribe | VC+ | Download Our App Hello, welcome to your Sunday Digest. This week, we visualized public debt by

Android Weekly #654 🤖

Sunday, December 22, 2024

View in web browser 654 December 22nd, 2024 Articles & Tutorials Sponsored Solving ANRs with OpenTelemetry While OpenTelemetry is the new observability standard, it lacks official support for many

😸 Our interview with Amjad Masad

Sunday, December 22, 2024

Welcome back, builders Product Hunt Sunday, Dec 22 The Roundup This newsletter was brought to you by AssemblyAI Welcome back, builders Happy Sunday! We've got a special edition of the Roundup this

C#537 Automating Santa's Workshop with NServiceBus

Sunday, December 22, 2024

Using event-driven architecture for effective gift delivery 🎄🎁 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌