Issue #567

Inlined Comprehensions PEP, Iterators, Pandas 2.0, and More

March 7, 2023

Inlined Comprehensions PEP, Iterators, Pandas 2.0, and More
#567 – MARCH 7, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PEP 709: Inlined Comprehensions
Python Enhancement Proposal 709 covers a change to how comprehensions are handled. Currently they are compiled as nested functions. Benchmarking shows that treating list, dict, and set comprehensions as in-line code can result in a 2x speedup on the comprehension.
PYTHON.ORG

Iterators and Iterables in Python: Run Efficient Iterations
In this tutorial, you’ll learn what iterators and iterables are in Python. You’ll learn how they differ and when to use them in your code. You’ll also learn how to create your own iterators and iterables to make data processing more efficient.
REAL PYTHON

How Cisco Achieved Greater Observability with InfluxDB
Discover how Cisco teams use Python and InfluxDB to create custom DevOps and network monitoring solutions →
INFLUXDATAsponsor

Pandas 2.0 and the Arrow Revolution (Part I)
This article details the changes in the Pandas 2.0 release, with emphasis on the underlying adoption of Apache Arrow.
MARC GARCIA


Discussions


Python’s multiprocessing Performance Problem
Last week’s issue of PyCoders included a link to Python’s multiprocessing performance problem which now has a Hacker News conversation to go along with it.
HACKER NEWS

Why Python Keeps Growing
HACKER NEWS


Python Jobs


Software Engineer - Backend/Python (100% Remote)
CLOSE 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


The Speed of Python: It Ain’t That Bad!
The articles discusses whether Python is as slow as so many authors claim. When doing so, it mentions highly optimized Python frameworks for numerical computation, efficient compilers - but also coding time as opposed to execution time. All in all, Python is much faster than most think.
MARCIN KOZAK • Shared by Marcin

Your First Recurrent Neural Network (RNN)
In this introductory tutorial, you will build a recurrent neural network (RNN) with PyTorch. The RNN will be trained to read names and it will output the natural language they belong to. This is a modern spin on a tutorial from the PyTorch documentation.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

Deliver Clean Code with SonarQube
Level up your code game with SonarQube 9.9 LTS! Included is 2x faster Pull Request analysis and up to 90% faster first analysis of your Python projects if you are using Git SCM. Also, 21 rules to help you write error-free regex, new rules for detecting path-sensitive bugs, and more. Discover Now →
SONARQUBEsponsor

Writing Clean, Pythonic Code With namedtuple
In this video course, you’ll learn what Python’s namedtuple is and how to use it in your code. You’ll also learn about the main differences between named tuples and other data structures, such as dictionaries, data classes, and typed named tuples.
REAL PYTHON course

Using NumPy reshape() to Change the Shape of an Array
In this tutorial, you’ll learn how to use NumPy reshape() to rearrange the data in an array. You’ll learn to increase and decrease the number of dimensions and to configure the data in the new array to suit your requirements.
REAL PYTHON

13 Tips and Techniques for Modern Flask Apps
Flask is approaching its 13th birthday, and to celebrate, Phillip has written 13 tips for writing modern Flask apps. It covers dealing with JSON, environment based configuration, auto-generated docs, and more.
PHILIP JONES

Python 3.11 Is Faster, but Pyston & PyPy Still Show Advantages
There are many speed improvements in CPython 3.11, but that doesn’t mean the Python alternatives don’t still have some advantages. Pyston and PyPy are still better in some cases.
MICHAEL LARABEL

Using OpenAI and Python to Enhance Your Resume
This tutorial shows you how to build a system that takes a question template and writes a resume as output. The example is built on Streamlit and OpenAI.
PIERO PAIALUNGA

Elixir for Humans Who Know Python
Elixir is a functional based programming language with similarities to Ruby and Python. This article is an intro guide for programmers who know Python.
RICH JONES

Python Is Two Languages Now, and That’s Actually Great
Python’s addition of typing has created “two” languages: typed and untyped Python. Tin tells you why that’s a great thing.
TIN TVRTKOVIĆ

Connect, Integrate & Automate Your Data - From Python or Any Other Application
At CData, we simplify connectivity between the application and data sources that power business, making it easier to unlock the value of data.
CDATA SOFTWAREsponsor

Build a Python CLI Tool With Rust
This step-by-step tutorial shows you how to build a rust tool and deliver it through Python packaging mechanisms.
MAKSUDUL HAQUE' • Shared by Maksudul Haque

Testing Multiple Python Versions With nox and pyenv
Quick instructions on using nox with parameters to test multiple versions of Python against your test suite.
SETH LARSON


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 →

30-Days-Of-Python: Guide to Learning Python Programming
GITHUB.COM/ASABENEH

High Performance in-Memory Cache
GITHUB.COM/YILING-J • Shared by yiling

RWKV-LM: RNN With Transformer-Level LLM Performance
GITHUB.COM/BLINKDL

nosqlapi: NOSQL Database API
NOSQLAPI.READTHEDOCS.IO • Shared by Matteo Guadrini

paperless-ngx: Scan, Index & Archive Your Physical Docs
GITHUB.COM/PAPERLESS-NGX

📆🐍 Upcoming Python Events


Santa Cruz Python Meetup
March 8, 2023

Heidelberg Python Meetup
March 8, 2023

Weekly Real Python Office Hours Q&A (Virtual)
March 8, 2023

pyCologne User Group Treffen
March 8, 2023

Python North East
March 8, 2023

DFW Pythoneers 2nd Saturday Teaching Meeting
March 11, 2023

Python Web Conf 2023
March 13 to March 18, 2023

PyCascades
March 18 to March 20, 2023 in Vancouver, BC + Remote
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.