Python Collections, SciPy's New Build System, What To Know About the "operator" Module, and More

#483 – JULY 27, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python’s collections: A Buffet of Specialized Data Types
Python has a number of useful data types beyond the built-in lists, tuples, dicts, and sets. In this tutorial, you’ll learn all about the series of specialized container data types in the collections module from the Python standard library. Learning the collections module is a great way to level up your Python programming knowledge!
REAL PYTHON

Moving SciPy to the Meson Build System
In accordance with PEP 632, distutils will be deprecated in Python 3.10 and in Python 3.12 it will be removed. This posed a big problem for SciPy, since it’s build system depends on NumPy’s distutils module — an extension of Python’s built-in distutils. The SciPy maintainers set out to find a new build system and settled on Meson, which solves a number of build issues and even scores a 4x speed-up on build times!
RALF GOMMERS

An Immersive Virtual Office For Your Team
What if you could run into people at the office…while you work remotely? Gather makes it possible. Claim a desk, chat by the water cooler, and hold important meetings in an interactive space. Free up to 25 users →
GATHERsponsor

The Unknown Features of Python’s Operator Module
Have you heard of Python’s operator module? It includes functions for common operators, including mathematical operators like +, -, *, and /, and well as operators for getting items from dictionaries and accessing object attributes. The operator module might seem confusing at first glance. This article explores why it exists, what benefits you get from it, and when it makes sense to use it in your code.
MARTIN HEINZ • Shared by Martin Heinz

Python Software Foundation Fellow Members for Q2 2021
PYTHON SOFTWARE FOUNDATION


Discussions


Do Not Use Mutable Objects as Default Arguments in Python
Ah, mutable default arguments. If you haven’t come across them in your Python journey yet, this Reddit thread is full of examples of Python developers that lost time debugging functions with a mutable default argument. Avoiding mutable defaults is good advice in general, but blanket absolute statements are dangerous. To counter this discussion, here’s a Twitter thread exploring some genuine use cases.
REDDIT


Python Jobs


Backend Software Engineer (Remote)
CATALPA INTERNATIONAL

Python Developer (Remote)
TESSIAN

Software Developer (Remote)
UNIVENTION GMBH

Backend Software Engineer (Washington, D.C., USA)
QUORUM

Senior Cloud Platform Engineer (Berlin, Germany)
APHERIS

Software Engineer (Remote)
CLOSE

Backend Software Engineer (Remote)
TESSIAN

Python Web Developer (Remote)
PREMIERE DIGITAL SERVICES

More Python Jobs >>>


Articles & Tutorials


The Pandas DataFrame: Working With Data Efficiently
In this tutorial, you’ll get started with Pandas DataFrames, which are powerful and widely used two-dimensional data structures. You’ll learn how to perform basic operations with data, handle missing values, work with time-series data, and visualize data from a Pandas DataFrame.
REAL PYTHON course

Testing the Diff
How do you write good tests? It’s a challenging problem because there are a number of layers involved. You need to write good test code that follows best practices. But you also need to write tests that aren’t fragile and make sure tests really test what you expect them to. This article gives an example of a seemingly harmless test that turns out to be pretty fragile. You’ll learn one technique for making a test more robust called “testing the diff.”
FILIPE XIMENES • Shared by Filipe Ximenes

Try Scout Free for 14-days, no CC Needed, and see why Developers Call Scout their Best Friend
Scout uses tracing logic to tie bottlenecks to source code so devs can get back to building great products instead of wasting time fixing performance issues. Our real-time alerting and streamlined dashboards provide the data insights necessary for any developer to become a performance pro →
SCOUT APMsponsor

Beautiful Ideas in Programming: Generators and Continuations
This article explores how generators, which you can create in Python using the yield keyword in a function, are special cases of a more powerful construct called “continuations.” The author compares Python’s generator syntax to creating continuations in Scheme, a modern LISP dialect. The idea isn’t so much to learn how to write generators and continuations, but rather to explore how the ideas are related and to appreciate the elegance and beauty of both concepts.
HSIN-HAO YU

What Can You Do With Python and Counting Objects Using Counter
How is Python being used today, and what can you do with the language? Do you want to develop software, dive into data science and math, automate parts of your job and digital life, or work with electronics? This week on the Real Python Podcast, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects.
REAL PYTHON podcast

Why Tracing Might Replace (Almost) All Logging
Lightstep CEO and Co-founder Ben Sigelman shares his vision for the future of distributed tracing.
LIGHTSTEPsponsor

Efficient Pagination in Django and Postgres
Pagination breaks up results from a query into chunks called “pages” so that only a few results are returned to the user at a time. In many cases, using native SQL tools like LIMIT and OFFSET can get you up and running with pagination quickly and work fairly well. But on datasets with millions of rows, this method breaks down. This helpful article shows you three methods for efficiently handling pagination using Django and Postgres.
RYAN WESTERBERG • Shared by Manuel Weiss

Your First Steps With Django: Set Up a Django Project
This tutorial provides a walkthrough and a reference for starting a Django project and app. You can use it as a quick setup guide for any future Django project and tutorial you’ll work on.
REAL PYTHON


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 →

qmsolve: A Module for Solving and Visualizing the Schrödinger Equation
GITHUB.COM/QUANTUM-VISUALIZATIONS

jupyter-text2code: A Proof-of-Concept Jupyter Extension Which Converts English Queries Into Python Code
GITHUB.COM/DEEPKLARITY

dlib: A C++/Python Toolkit for Making Real World Machine Learning and Data Analysis Applications
GITHUB.COM/DAVISKING

aptus: Mandelbrot Set Explorer and Renderer
GITHUB.COM/NEDBAT

hook-slinger: A Generic Service to Send, Retry, and Manage Webhooks
GITHUB.COM/REDNAFI • Shared by Redowan Delowar

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) July 28, 2021

⋅ EuroPython 2021 (Virtual) July 26 – August 1, 2021

⋅ PyOhio 2021 (Virtual) July 31 — August 1, 2021

⋅ PyCon India 2021 (Virtual) September 17 – 20, 2021
Happy Pythoning!
Copyright © 2021 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

Building Web Apps With FastAPI, How Python Imports Work, 1st Week of CPython Developer-In-Residence, and More

Tuesday, July 20, 2021

Using FastAPI to Build Python Web APIs #482 – JULY 20, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Using FastAPI to Build Python Web APIs In this guide, written by FastAPI creator Sebastián

One Database Transaction Too Many, State of Python Packaging in 2021, Final Python 3.10 Beta Released, and More

Tuesday, July 13, 2021

One Database Transaction Too Many #481 – JULY 13, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo One Database Transaction Too Many Learn how a bug was born — one that resulted in hundreds of users

Python Typeclasses, Custom DRF Permissions Classes, How to Count in Python, and More

Tuesday, July 6, 2021

Typeclasses in Python #480 – JULY 6, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Typeclasses in Python Sometimes you need to change the behavior of a function based on the type of argument

Subclassing in Python, Correlation Analysis 101, Reversion Python Lists and Beyond, And More

Tuesday, June 29, 2021

Subclassing in Python Redux #479 – JUNE 29, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Subclassing in Python Redux Have you ever heard someone say that composition is better than inheritance?

Pivot and Plot Data With Pandas, The Future of FastAPI and Pydantic, Complex Numbers in Python, And More

Tuesday, June 22, 2021

How to Pivot and Plot Data With Pandas #478 – JUNE 22, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo How to Pivot and Plot Data With Pandas One of the challenges of working with data is knowing

You Might Also Like

Ranked | The Most Satisfying vs. Most Reliable Car Brands in 2024 🚙

Monday, December 23, 2024

The most reliable car brands are rarely the most satisfying to own, according to recent Consumer Reports survey data. View Online | Subscribe | Download Our App Presented by: Find the megatrends

Bitcoin Enthusiasts Are Letting Altcoins Pass by

Monday, December 23, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 23, 2024? The

Last Minute Gifts from Walmart

Monday, December 23, 2024

ZDNET ZDNET Sponsored Message In Partnership with Walmart December 23, 2024 exclusive offer Walmart Last-minute gifts from Walmart Shop Now Walmart The tech you've been wishing for–at everyday low

15 ways AI saved me weeks of work in 2024

Monday, December 23, 2024

ZDNET's product of the year; Windows 11 24H2 bug list updated -- ZDNET ZDNET Tech Today - US December 23, 2024 AI applications on various devices. 15 surprising ways I used AI to save me weeks of

Distributed Locking: A Practical Guide

Monday, December 23, 2024

If you're wondering how and when distributed locking can be useful, here's the practical guide. I explained why distributed locking is needed in real-world scenarios. Explored how popular tools

⚡ THN Weekly Recap: Top Cybersecurity Threats, Tools and Tips

Monday, December 23, 2024

Your one-stop-source for last week's top cybersecurity headlines. The Hacker News THN Weekly Recap The online world never takes a break, and this week shows why. From ransomware creators being

⚙️ OpenA(G)I?

Monday, December 23, 2024

Plus: The Genesis Project ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 12/23/2024

Monday, December 23, 2024

New blogs from Syncfusion Introducing the New WinUI Kanban Board By Karthick Mani This blog explains the features of the new Syncfusion WinUI Kanban Board control introduced in the 2024 Volume 4

Import AI 395: AI and energy demand; distributed training via DeMo; and Phi-4

Monday, December 23, 2024

What might fighting for freedom in an AI age look like? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LockBit Ransomware Developer Charged for Billions in Global Damages

Monday, December 23, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest