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

AI search engine startup Perplexity eyes a $3B valuation

Tuesday, April 23, 2024

Plus: It's Tesla earnings day and AWS wants to host your AI models View this email online in your browser By Cody Corrall Tuesday, April 23, 2024 Welcome back to TechCrunch PM. Today we have big

🎞️ We Tried 3D Printing a Photo — You'll Love This Secret Samsung Galaxy Bluetooth Feature

Tuesday, April 23, 2024

Also: Transferring Your Phone Number to a New Carrier, and More! How-To Geek Logo April 23, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to

You're invited – product sense, prioritization, careers

Tuesday, April 23, 2024

Product Sense Product Sense Wednesday, May 1st @ 01:00 PM EST Learn how to identify opportunities, assess risks, and make informed decisions that lead to successful product innovations by better

CTRL-C, Exceptions, Ruff Speed-up, and More

Tuesday, April 23, 2024

Asyncio Handle Control-C (SIGINT) #626 – APRIL 23, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Asyncio Handle Control-C (SIGINT) When the user presses CTRL-C on the keyboard, the OS raises an

Writing Contests Just Landed On Product Hunt 🔥

Tuesday, April 23, 2024

Upvote us to keep the $$$ coming! 👍 ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ 

Daily Coding Problem: Problem #1421 [Hard]

Tuesday, April 23, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Given an array of integers, return a new array such that each element at index i

Ranked | The Top 10 EV Battery Manufacturers 🔋

Tuesday, April 23, 2024

Asia dominates this ranking of the world's largest EV battery manufacturers in 2023. See which battery makers feature in the top 10. View Online | Subscribe Presented by: EnergyX's

Bringing PGO to the build pipeline

Tuesday, April 23, 2024

Plus how Go grew at Google, cmp.Or, and ways to visualize makefiles, Go binaries, and live Go processes. | #​504 — April 23, 2024 Unsub | Web Version Together with Three Dots Labs Go Weekly How Dolt

Noonification: Leetcode: Two-sum an Intuitive Approach

Tuesday, April 23, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech this week: The Noonification by HackerNoon has got you covered with

The best AI chatbot for coding

Tuesday, April 23, 2024

9 video gadget must-haves; 6 things Linux should borrow from MacOS -- ZDNET ZDNET Tech Today - US April 23, 2024 placeholder Can Meta AI code? I tested it against Llama, Gemini and ChatGPT - it wasn