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

Christmas On Repeat 🎅

Monday, December 23, 2024

Christmas nostalgia is a hell of a drug. Here's a version for your browser. Hunting for the end of the long tail • December 22, 2024 Hey all, Ernie here with a refresh of a piece from our very

SRE Weekly Issue #456

Monday, December 23, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: On-call during the holidays? Spend more time taking in some R&R and less getting paged. Let alerts make their rounds fairly with our

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