Issue #488

Python == #1, Instagram's Custom Python Interpreter, PyCon 2022 Volunteering, and More

Aug. 31, 2021

Python == #1, Instagram's Custom Python Interpreter, PyCon 2022 Volunteering, and More
#488 – AUGUST 31, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python Ranks #1 in IEEE “Top Programming Languages”
“Python dominates as the de facto platform for new technologies” and “Learn Python. That’s the biggest takeaway we can give you from its continued dominance of IEEE Spectrum’s annual interactive rankings of the top programming languages. You don’t have to become a dyed-in-the-wool Pythonista, but learning the language well enough to use one of the vast number of libraries written for it is probably worth your time.”

skybison: Instagram’s Experimental Performance Oriented Greenfield Implementation of Python
“Skybison is experimental performance-oriented greenfield implementation of Python 3.8. It contains a number of performance optimizations, including: small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.”

Start Your Free Scout APM Trial, No CC Needed, and Receive a $5 Donation to the OSS of Your Choice
Scout APM is leading-edge application performance and error monitoring designed to help devs find and fix observability issues before the customer ever sees them. You can connect your error reporting and APM data on one platform, with Scout’s new error monitoring feature add-on →
SCOUT APMsponsor

How to Use Optional Arguments When Defining Python Functions
In this tutorial, you’ll learn about optional arguments in Python and how to define functions with default values. You’ll also learn how to create functions that accept any number of arguments using args and kwargs.

Python Project-Local Virtualenv Management
On UNIX-like operating systems you can have the Python equivalent of node_modules today, for every Python version, without changing your workflows.

Humble Software Bundle: Python Superpowers 2021
Pick up the awesome programming potential of Python with software like Mastering PyCharm (2021 Edition) & Object-Oriented Programming (OOP) in Python. Pay what you want & support charity!

Join the PyCon US 2022 Team!
The PyCon US organizers are looking for motivated volunteers who want to contribute their time and knowledge to make this year’s conference a great success.

Python 3.9.7 and 3.8.12 Are Now Available
More info in the full changelog.


math.sqrt vs numpy.sqrt vs x ** 0.5 Performance Discussion
Andrej Karpathy (Director of AI at Tesla) shares an interesting performance observation on this Twitter thread that turns into a tale about accurate benchmarking. Calculating math.sqrt(1337.0) appears to be 10x faster than numpy.sqrt(1337.0). Python’s built-in square root (x ** 0.5) appears to be even faster. However, most of the performance differences seem to come from the benchmark setup, as Ishan Bhatt explains in this writeup.

Python Jobs

Data Engineer - Python & PostgreSQL (Newport Beach, CA, USA)

Sr. Backend Developer (Amsterdam, Netherlands)

Backend Software Engineer (Anywhere)

More Python Jobs >>>

Articles & Tutorials

A Python Data Scientist’s Guide to the Apple Silicon Transition
A break down of what Apple Silicon means for Python users today, especially those doing scientific computing and data science: what works, what doesn’t, and where this might be going.

Write an SQL Query Builder in 150 Lines of Python
“This is the fourth article in a series about writing my own SQL query builder. Today, we’ll rewrite it from scratch, explore API design, learn when to be lazy, and look at worse and better ways of doing things – all in 150 lines of Python!”

Rev APIs Solve All of Your Speech-to-Text Needs is the most sophisticated automatic speech recognition in the world. Our speech-to-text APIs are more accurate, easier to use, and have less bias than competitors like Google, Amazon, and Microsoft. Try free for five hours right now →

Splitting Datasets With scikit-learn and train_test_split()
Learn why it’s important to split your dataset in supervised machine learning and how to do that with train_test_split() from the widely used scikit-learn package.

Building With CircuitPython & Constraints of Python for Microcontrollers
Can you make a version of Python that fits within the memory constraints of a microcontroller and have it still feel like Python? That is the intention behind CircuitPython. This week on the show, Scott Shawcroft, who is the project lead for CircuitPython.

Parsing in Python: Tools and Libraries You Can Use
“We present and compare all possible alternatives you can use to parse languages in Python. From libraries to parser generators, we present all options.”

Low-Level Cache API in Django
Caching in Django can be implemented on different levels (or parts of the site). This article looks at how to use the low-level cache API in Django.

SonarLint Free and Open Source IDE Extension for Python Devs
Working in VS Code, PyCharm, Visual Studio, or Eclipse? SonarLint helps you find & fix Code Quality and Code Security issues in your Python codebase!

Python Behind the Scenes: How Async/Await Works in Python
“The async/await pattern can be explained in a simple manner if you start from the ground up. And that’s what we’re going to do today.”

Using libsqlite3 Directly From Python With ctypes
How to use ctypes to run SQLite queries without using the built-in sqlite3 Python package, and without compiling anything.

Handling Environment Variables in Python

Simulating a Direct Digital Frequency Synthesizer in 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 →

kmk_firmware: Clackety Keyboards Powered by Python

ordered: Entropy-Controlled Contexts in Python

gopygo: Pure Python Go Parser, AST and Unparser Library

cattrs: Complex Custom Class Converters for attrs

msl-apollo-entry-guidance: Python Implementation of the Apollo Entry Guidance Algorithm Used by NASA’s MSL Spacecraft

pylectronics: Reproduce Digital Electronics in Python

sqlmodel: SQL Databases in Python, Designed for Simplicity, Compatibility, and Robustness

📆🐍 Upcoming Python Events

⋅ Real Python Office Hours (Virtual) September 1, 2021

⋅ PyConline AU 2021 September 10 to September 13, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.