Issue #425

Async Python Isn't Always Faster, Python Space Science, Generators, and More

June 16, 2020

Async Python Isn't Always Faster, Python Space Science, Generators, and More
#425 – JUNE 16, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Getting Machine Learning to Production
Millions of web apps get deployed to production every day. But machine learning models aren’t web apps. And very few people are talking about deployment. Learn how tools like Streamlit can help take the edge off deploying your machine learning models.
VICKI BOYKIS

Python Generators 101
In this step-by-step course, you’ll learn about generators and yielding in Python. You’ll create generator functions and generator expressions using multiple Python yield statements. You’ll also learn how to build data pipelines that take advantage of these Pythonic tools.
REAL PYTHON course

Python Developers Are in Demand on Vettery
Vettery is an online hiring marketplace that’s changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today →
VETTERYsponsor

Introducing Pew Research Center’s Python Libraries
The Pew Research Center’s Data Labs team has open sources two Python libraries for wrangling files and cleaning up text documents.
PATRICK VAN KESSEL

Async Python Is Not Faster
Performance optimization is a tricky subject and silver bullets are rare. This article shines a light on some of the common misconceptions around async Python, like “async is always faster.” Related discussion on Hacker News.
CAL PATERSON

New LEGO Mindstorm Robot Kit Supports Python
In Fall 2020, LEGO will release a new Mindstorm Robot Inventor kit that allows children of all ages to build robots out of LEGO and program them with Python.
LEGO.COM

Django 3.1 Beta 1 Released
“Django 3.1 beta 1 is now available. It represents the second stage in the 3.1 release cycle and is an opportunity for you to try out the changes coming in Django 3.1. Django 3.1 has a potpourri of new features which you can read about in the in-development 3.1 release notes.”
DJANGO SOFTWARE FOUNDATION

Space Science With Python
Explore and analyze the wonders and mysteries of space… with Python!
THOMAS ALBIN


Discussions


Does Python Forbid Two Similarly Looking Unicode Identifiers?
Set 𝑓 = 1729. Now print(f) prints 1729! Excuse me, but I have questions!
STACK OVERFLOW

How Do You Get the Count for Each Item in a List of Lists?
collections.Counter and itertools to the rescue!
STACK OVERFLOW

How Does git Know What a Python Function/Class Definition Looks Like?
Hint: Regular expressions. Lots of them.
TWITTER.COM/SIMONW


Python Jobs


Senior Python Engineer
GORGIAS 📍 REMOTE

Software Engineer Java, Python
PROFESSIONAL SEARCH GROUP (PSG) 📍 REMOTE

Software Developer Python
NETIZEN CORPORATION 📍 REMOTE

More Python Jobs >>>


Articles & Tutorials


Python Keywords: An Introduction
Python keywords make up the fundamental building blocks of any Python program. In this tutorial, you’ll learn the basic syntax and usage for each of Python’s thirty-five keywords so you can write more efficient and readable code.
REAL PYTHON

Debugging Out-Of-Memory Crashes in Python
If your program crashes because it’s out of memory, how do you figure out where the memory issue occurs? The Fil memory profiler can help you out!
ITAMAR TURNER-TRAURING

The Cloud Python Developers Love
DigitalOcean is the cloud provider that makes it easy for developers to deploy and scale their applications. From Flask and Django apps to JupyterHub Notebook servers, DigitalOcean enables Python developers to focus their energy on creating software →
DIGITALOCEANsponsor

Making Python Integers Iterable
You can’t loop over an integer in Python… unless you change the source code! Learn how to make integers iterable by altering the CPython source code. Also learn why this is a bad idea.
ARPIT BHAYANI

SettingWithCopyWarning in Pandas: Views vs Copies
In this tutorial, you’ll learn about views and copies in NumPy and Pandas. You’ll see why the SettingWithCopyWarning occurs in Pandas and how to properly write code that avoids it.
REAL PYTHON

Never Forget Your Password With This Python Encryption Algorithm
Share your passwords safely with friends and family, even if you don’t trust a couple of them, just as an ancient and wise king well versed in Python once did.
MOSHE ZADKA

A Data Engineering Perspective on Go vs. Python
See how Go and Python stack up from the perspective of a data engineer by implementing the Mandelbrot set in both languages.
CHRISTIAN HOLLINGER

RSVP for the Python Web Conference (Virtual, June 17–19, 2020)
International experts share best practices for hard web production problems. 40+ talks on Django, Plone, CI/CD, Containers, Serverless, REST APIs, web security, microservices, etc. Join JetBrains and Six Feet Up to discuss what the future holds.
SIX FEET UPsponsor

PDFs in Python and Projects on the Raspberry Pi
Have you wanted to work with PDF files in Python? Maybe you want to extract text, merge and concatenate files, or even create PDFs from scratch. Are you interested in building hardware projects using a Raspberry Pi? Then check out this episode of the Real Python Podcast.
REAL PYTHON podcast

Beware of JSON fields in SQLAlchemy
“PostgreSQL JSON fields are a really convenient way of storing structured data alongside traditional row/column values, but when using them in SQLAlchemy you should be mindful of how changes are detected.”
ADRIÀ MERCADER • Shared by Adrià Mercader

Analyzing Messi and Ronaldo’s Games Using Python and Streamlit
Build an interactive dashboard exploring Messi and Ronaldo’s games during the 2017-18 LaLiga season using Python and Streamlit.
ADIL MOUJAHID

TLDR Newsletter: Byte Sized News for Techies
TLDR is a daily, curated newsletter with links and TLDRs of the most interesting stories in tech, science, and programming.
TLDRNEWSLETTER.COM

Introduction to Property-Based Testing in Python
FLORIAN DAHLITZ • Shared by Florian Dahlitz


Projects & Code


MicroscoPy: An Open-Source, Motorized, and Modular Microscope Built Using LEGO Bricks, Arduino, Raspberry Pi and 3D Printing
GITHUB.COM/IBM

SpiceyPy: SpiceyPy: A Pythonic Wrapper for the SPICE Toolkit
GITHUB.COM/ANDREWANNEX

genetic-drawing: A Genetic Algorithm Toy Project for Drawing
GITHUB.COM/ANOPARA

pewtils: General Programming Utilities From Pew Research Center
GITHUB.COM/PEWRESEARCH

pewanalytics: Text and Statistics Utilities From Pew Research Center
GITHUB.COM/PEWRESEARCH

chalice: Python Serverless Microframework for AWS
GITHUB.COM/AWS

dexplot: Simple Plotting Library That Wraps Matplotlib and Integrated With DataFrames
GITHUB.COM/DEXPLO

streamlit: The fastest way to build custom ML tools
GITHUB.COM/STREAMLIT

newtdb: A Python Object-Oriented Database With JSONB-based Access and Search in PostgreSQL
GITHUB.COM/NEWTDB

Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.