Not Functions, But Classes; Exploring Scope; All About Asterisks; and More

#527 โ€“ MAY 31, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python’s “Functions” Are Sometimes Classes
Ever use list() or enumerate()? Think of them as functions? They’re not, they’re classes. Sometimes we call classes functions in Python. Why? And what’s a “callable”?
TREY HUNNER

Exploring Scopes and Closures in Python
In this Code Conversation video course, you’ll take a deep dive into how scopes and closures work in Python. To do this, you’ll use a debugger to walk through some sample code, and then you’ll take a peek under the hood to see how Python holds variables internally.
REAL PYTHON course

Ultimate Guide to Python Pickle: How To’s, Exploits & Safety
Pythonโ€™s pickle library is useful in maintaining persistence within complex data structures and objects. Learn how to safely use a pickle in application development using this comprehensive guide โ†’
SNYK.IOsponsor

All You Need to Know About Asterisks in Python
The * is for more than multiplication, it is also the basis for the two deconstruction operators: * and **. Learn the ins-and-outs of using *args, **kwargs, deconstruction, and forcing keyword-arguments-only in functions.
BAS STEINS

ctx Library Hijacked to Steal AWS Keys
AX SHARMA


Discussions


Useful Python Decorators for Data Scientists
Marton Trencseni posted Useful Python decorators for Data Scientists, a follow-up to the article included in Issue #525. It got posted on Hacker News and strong opinions ensued. Read the article, then weigh in.
HACKER NEWS

Python Standard Library Changes in Recent Years
Discussion based on the previously linked article Python Standard Library Changes in Recent Years.
HACKER NEWS


Python Jobs


Gameful Learning Developer
UNIVERSITY OF MICHIGAN ๐Ÿ“ ANN ARBOR, MI, USA

Python Technical Architect
BLENDERBOX ๐Ÿ“ USA

Software Engineer, Los Angeles or Dallas
CAUSEWAY CAPITAL MANAGEMENT LLC ๐Ÿ“ LOS ANGELES, CA, USA

DevOps Engineer
UNIVERSITY OF MICHIGAN ๐Ÿ“ ANN ARBOR, MI, USA

Academic Innovation Developer
UNIVERSITY OF MICHIGAN ๐Ÿ“ ANN ARBOR, MI, USA

Software Development Lead
UNIVERSITY OF MICHIGAN ๐Ÿ“ ANN ARBOR, MI, USA

Senior Backend Engineer
DOIST ๐Ÿ“ ANYWHERE

Senior Storytelling Framework Engineer - Python
GOPRO ๐Ÿ“ FRANCE

Senior Software Engineer - Python Full Stack
BLENDERBOX ๐Ÿ“ USA

More Python Jobs >>>


Articles & Tutorials


How to Create a Command-Line Application With argparse
Scripts often need either configuration or data to proceed and for many situations this can be passed in on the command line. The standard library argparse helps you parse arguments, add help info, and even alias your commands.
MIKE DRISCOLL

A Quick Way to Animate Your Python Plots
There are lots of choices when developing animated plots, many of which have a steep learning curve. Learn how to create animated GIFs through matplotlib and ImageIO to bash something out quickly.
CHRISTOPHER TAO

Build Web Apps Entirely in Python
With Anvil, you can build seriously powerful web apps with Python - no web dev experience needed! Design your UI with drag-and-drop components. Build your application with Python (not JS or HTML). Deploy in the cloud with one click, or on site with a pip-install. Check it out โ†’
ANVILsponsor

Lesser Known Django Management Commands
You probably know about runserver, migrate and shell, but there are lots more Django management commands. Learn about diffsettings, sendtestemail, inspectdb, and showmigrations.
GONร‡ALO VALร‰RIO

Animating Regular Expressions With Python and Graphviz
Visualizing regular expressions can help you understand how they work and what a particular expression accomplishes. Read on to learn how to use Graphviz to better understand your regex.
AYDIN SCHWARTZ

Build a CRUD Application Using Django, React & Docker
Step-by-step instructions on creating a web application with a React front-end and the Django Rest Framework as a back-end and all tied together with Docker for distribution.
MANGABO KOLAWOLE

What’s in Which Python
A quick listing of what features were added in which version of Python, going back to Python 2.1 and including links to corresponding PEPs.
NED BATCHELDER

Unlock Secret Knowledge From Python Experts for Just $10
Packt’s Spring Sale is on and for a limited period, all eBooks and Videos are only $10. Our Products are available as PDF, ePub, and MP4 files for you to download and keep forever. All the practical content you need - by developers for developers.
PACKT PUBLISHINGsponsor

Native Type/Dunder-Methods in Python
Learn how to make your classes act like native data types through the implementation of double-underscore magic methods.
THEODOROS KARASAVVAS

The Unreasonable Effectiveness of f-strings and re.VERBOSE
A look at one or two ways to make life easier when working with Python regular expressions.
ANDGRAVITY.COM


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

import-tracker: Track 3rd Party Dependencies Within a Library
GITHUB.COM/IBM

dowsing: Metadata Extraction Without Execution
GITHUB.COM/PYTHON-PACKAGING

lineapy: Capture, Analyze, & Automate Data Science Workflows
GITHUB.COM/LINEALABS

Mindfulness-at-the-Computer the App
GITLAB.COM/MINDFULNESS-AT-THE-COMPUTER

PyDaddy: Discover SDE Equations From Time-Series Data
GITHUB.COM/TEE-LAB โ€ข Shared by Ashwin Karichannavar

๐Ÿ“†๐Ÿ Upcoming Python Events


STL Python
June 1, 2022

Weekly Real Python Office Hours Q&A (Virtual)
June 1, 2022

PyCon Italy 22
June 2 to June 6, 2022

Sydney Python User Group (SyPy)
June 2, 2022

Reuniรณn Python Valencia
June 2, 2022

Virtual PythonCamp Cologne 2022
June 4 to June 6, 2022
Happy Pythoning!
Copyright ยฉ 2022 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 a URL Shortener, Debug Life, Pigeon Deterents, and More

Tuesday, May 24, 2022

Build a URL Shortener With FastAPI and Python #526 – MAY 24, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Build a URL Shortener With FastAPI and Python In this step-by-step project, you'll

Python's min() and max(), django-rich, Evaluating Dependencies, and More

Tuesday, May 17, 2022

Python's min() and max(): Find Smallest and Largest Values #525 – MAY 17, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python's min() and max(): Find Smallest and Largest Values In this

PyCon US 2022 Wrap-Up, Game Engines, PyScript, and More

Tuesday, May 10, 2022

PyCon US 2022 Highlights #524 – MAY 10, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo PyCon US 2022 Highlights “It was wonderful to be back at PyCon US in person again. PyCon is way too big for

Dunder Methods, Closing Files, The GIL, and More

Tuesday, May 3, 2022

Dunder Methods in Python: The Ugliest Awesome Sauce #523 – MAY 3, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Dunder Methods in Python: The Ugliest Awesome Sauce Double-underscore methods, also

Type Hints in Multi-Version Code, Extras for Enum, Django Users, and More

Tuesday, April 26, 2022

Type Hints in Code Supporting Multiple Python Versions #522 – APRIL 26, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Type Hints in Code Supporting Multiple Python Versions The typing module

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your