Dunder Methods, Closing Files, The GIL, and More

#523 – MAY 3, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Dunder Methods in Python: The Ugliest Awesome Sauce
Double-underscore methods, also known as “dunder methods” or “magic methods” are an ugly way of bringing beauty to your code. Learn about constructors, __repr__, __str__, operator overloading, and getting your classes working with Python functions like len().
JOHN LOCKWOOD

Why Is It Important to Close Files in Python?
Model citizens use context managers to open and close file resources in Python, but have you ever wondered why it’s important to close files? In this tutorial, you’ll take a deep dive into the reasons why it’s important to close files and what can happen if you dont.
REAL PYTHON

Try atoti, A Free Collaborative Python BI Analytics Platform
atoti is a BI analytics platform combining a python library and a web application helping Quants, Data Analyst, Data Scientist and Business Users to collaborate, analyze and translate their data into business KPIs β†’
ACTIVEVIAMsponsor

When Python Can’t Thread: A Deep-Dive Into the GIL’s Impact
Python’s Global Interpreter Lock (GIL) stops threads from running in parallel or concurrently. Learn how to determine the impact of the GIL on your code.
ITAMAR TURNER-TRAURING

micro:bit Python Editor Beta 3 Released
MICROBIT.ORG

2022 “Call for Code” Global Challenge Accepting Entries
CALLFORCODE.ORG

Jupyter Community Workshops: Call for Proposals
JUPYTER.ORG


Discussions


Python Shouldn’t Be the Top Programming Language
Discussion of the controversial article Python Is Now Top Programming Language β€” But Shouldn’t Be
HACKER NEWS

When Would You Use the Lambda Function?
REDDIT


Python Jobs


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

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

Data & Operations Engineer
UNIVERSITY OF MICHIGAN πŸ“ ANN ARBOR, MI, USA

Python Technical Architect
BLENDERBOX πŸ“ USA

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

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

Lead Software Engineer
RIGHT SIDE UP πŸ“ ANYWHERE

Data Engineer
AQUATIC CAPITAL MANAGMENT πŸ“ CHICAGO, IL, USA

More Python Jobs >>>


Articles & Tutorials


Python Testing With doctest
Python’s doctest module allows you to write unit tests through REPL-like sessions in your doc-strings. Learn how to write and execute doctest code. Also available in video.
MIKE DRISCOLL

Handling Retries in Python Requests
When coding with requests and urllib3 you can automatically retry failed connections through the use of requests.adapters.HTTPAdapter and urllib3.Retry. Don’t code retry loops manually, learn how to take advantage of the features of the libraries.
MARKKU LEINIΓ– β€’ Shared by Markku LeiniΓΆ

Merge Faster with WorkerB for PRs Chrome Extension
The average pull request sits idle for two days! Add context to your PR & merge faster with WorkerB magic links. Get estimated review time, number of changes, & related issues in one click! Install it today β†’
LINEARBsponsor

Understanding Train Test Split
The Train-Test-Split methodology is useful for supervised machine learning with a given data set. It helps ensure that new data is more likely to be categorized correctly. Learn how to use it with Python and scikit-learn.
MICHAEL GALARNY β€’ Shared by Michael Galarnyk

Pagination for a User-Friendly Django App
In this tutorial, you’ll learn how to serve paginated content in your Django apps. Using Django pagination can significantly improve your website’s performance and give your visitors a better user experience.
REAL PYTHON

Code Quality Tools in Python
The article describes what code quality means and introduces some cool tools to improve your Python, including a variety of linters, formatters, and IDE tools.
DOLLAR DHINGRA β€’ Shared by Dollar Dhingra

Notes on Debugging
All programmers have to learn how to do it, and like all skills it takes practice. Learn some hints and approaches to the bane of us all: debugging.
IONEL CRISTIAN MΔ‚RIEȘ

CData Software β€” The Easiest Way to Connect Python With Data
Connect, Integrate, & Automate your data from any other application or tool in real-time, on-premise or cloud, with simple data access to more than 250 cloud applications and data sources. Learn more at cdata.com
CDATA SOFTWAREsponsor

MicroPython in Docker Containers
Want to play with MicroPython without a board? Learn how to use the Unix port of MicroPython in a Docker container to test out your code.
BHAVESH KAKWANI

Incorporating Julia Into Python Programs
Learn what you need to get Julia running inside your Python programs, using PyJulia, PyCall, and how to set up your environments.
PETER BAUMGARTNER


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

pet-python-startrek: 1977 Commodore PET Star Trek Remake
GITHUB.COM/BLOGMYWIKI

MNE: Explore and Visualize Neurophysiological Data
MNE.TOOLS

slipcover: Near Zero-Overhead Python Code Coverage Tracking
GITHUB.COM/PLASMA-UMASS

exceptionite: Make Prettier Exceptions a Cinch
GITHUB.COM/MASONITEFRAMEWORK

Real Time Multiplayer Bingo Game Using Django Channels
GITHUB.COM/LEARNINGNOOBI

πŸ“†πŸ Upcoming Python Events


PyCon US 2022
April 27 to May 6, 2022

STL Python
May 4, 2022

Weekly Real Python Office Hours Q&A (Virtual)
May 4, 2022

Heidelberg Python Meetup
May 4, 2022

Canberra Python Meetup
May 5, 2022

PyCon Kenya Conference 2022
May 6 to May 8, 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

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

WASM, Python Keywords, PyInstaller, and More

Tuesday, April 19, 2022

Build an Editor in Python and WebAssembly #521 – APRIL 19, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Build an Editor in Python and WebAssembly Step-by-step instructions on how to build a code

Levenshtein Distances, urllib, Python's Performance, and More

Tuesday, April 5, 2022

Python's `urllib.request` for HTTP Requests #519 – APRIL 5, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python's urllib.request for HTTP Requests In this tutorial, you'll be making

James Webb Telescope, Large JSON Files, Pillow, and More

Tuesday, March 29, 2022

Python and the James Webb Space Telescope #518 – MARCH 29, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python and the James Webb Space Telescope Python is used extensively in the data pipeline

Lists vs Tuples, Building Hash Tables, Frame-Based Editing, and More

Tuesday, March 22, 2022

Python `list` vs `tuple` Comparison #517 – MARCH 22, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python list vs tuple Comparison Learn how list and tuple are similar and how they are different,

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