Issue #426

PEP 618 Accepted, Python vs COVID-19, "pickle" Flaws You Should Know About, and More

June 23, 2020

PEP 618 Accepted, Python vs COVID-19, "pickle" Flaws You Should Know About, and More
#426 – JUNE 23, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Hands-On Linear Programming: Optimization With Python
In this tutorial, you’ll learn about implementing optimization in Python with linear programming libraries. Linear programming is one of the fundamental mathematical optimization techniques. You’ll use SciPy and PuLP to solve linear programming problems.
REAL PYTHON

OpenSafely: Using Python, SQL and Docker to Understand Coronavirus Health Data
Django and Payton developers teamed up with clinicians and researchers to release a new analytics platform called OpenSafely that allows researchers to analyze NHS health records from over 24 million people In the UK. With strict safety and privacy standards, OpenSafely may help redefine how medical data is analyzed and shared.
JO BEST

Working From Home? 7 Coding-Related Tools to Keep Kids Busy
ActiveState has curated a list of coding-related toys and tools to keep your kids productively busy, so that you can get your own programming tasks done. Check out the list, including ActiveState’s platform for building Python runtimes. →
ACTIVESTATEsponsor

PEP 618 Accepted for Python 3.10: Add Optional Length-Checking to zip()
PEP 618, which adds a new strict parameter to the built-in zip() function that optionally enforces same-length iterables, has been accepted for Python 3.10. Read the acceptance letter here and some interesting discussion about the PEP on Reddit.
PYTHON.ORG

Pickle’s Nine Flaws
“Python’s pickle module is a very convenient way to serialize and de-serialize objects. It needs no schema, and can handle arbitrary Python objects. But it has problems. This post briefly explains the problems.”
NED BATCHELDER

PyLadies India Embarked On Its Journey
On June 20th, 2020 PyLadies India held their first Meetup featuring a talk by CPython Core Contributor Mariatta Wijaya. Organizer Anwesha Das recounts her PyLadies journey and the steps the organization took to make the meetup a reality.
ANWESHA DAS

Securing a Containerized Django Application with Let’s Encrypt
Secure a containerized Django app running behind an HTTPS Nginx proxy with Let’s Encrypt SSL certificates.
TESTDRIVEN.IO • Shared by Jan Giacomelli

Advanced pytest Techniques I Learned While Contributing to pandas
Contributing to open-source projects is a great way to learn new techniques and level up your skills. Martin Winkel shares five advanced pytest techniques he learned while contributing to the pandas project.
MARTIN WINKEL

NumPy 1.19.0 Is Now Available
Version 1.19.0 drops support for Python 3.5 and below, including Python 2.
NUMPY.ORG

2020 Python Software Foundation Board of Directors Election Results
PYTHON SOFTWARE FOUNDATION

DjangoCon US 2020 Is Cancelled
DJANGO SOFTWARE FOUNDATION


Discussions


Draw With Your CPU (Code Golf)
Here’s a challenge: draw the word “MAIL” on your operating system CPU usage graph. Can you think of a simple way to do it with Python? Read on and get your mind blown with a fun round of code golf.
STACKEXCHANGE.COM

You Probably Should Be Using JupyterLab Instead of Jupyter Notebooks
Are you using JupyterLab yet?
REDDIT

Regex to Find a Pair of Adjacent Digits With Different Digits Around Them
STACK OVERFLOW


Python Jobs


Senior Python Engineer (Remote)
GORGIAS

Python Developer (Remote)
LORVEN TECHNOLOGIES, INC.

Senior Python Developer (Remote)
VISIONAIRE PARTNERS

More Python Jobs >>>


Articles & Tutorials


Property Testing With Complex Inputs
Property based testing is a powerful tool for generating test data and probing edge cases. Once you’ve learned the basics of a framework like Hypothesis, though, you might be left wondering how to generate complex data needed to test real world applications. Learn about several strategies in this intermediate-level tutorial.
HILLEL WAYNE

Generating Cooking Recipes Using TensorFlow and LSTM Recurrent Neural Network: A Step-By-Step Guide
Learn about LSTM (Long short-term memory) and RNN (Recurrent Neural Network) techniques while building a recipe generator so that you too can enjoy delicious creations like “Cream Soda with Onions” and “Salmon Mousse of Beef and Stilton Salad with Jalapeños.”
OLEKSII TREKHLEB

Profile, Understand & Optimize Python Code Performance
You can’t improve what you can’t measure. Profile and understand Python code’s behavior and performance (Wall-time, I/O, CPU, HTTP requests, SQL queries). Browse through appealing graphs. Blackfire.io is now available as Public Beta. New features added regularly. →
BLACKFIREsponsor

PySimpleGUI: The Simple Way to Create a GUI With Python
In this step-by-step tutorial, you’ll learn how to create a cross-platform graphical user interface (GUI) using Python and PySimpleGUI. A graphical user interface is an application that has buttons, windows, and lots of other elements that the user can use to interact with your application.
REAL PYTHON

Creating a Discord Bot in Python
In this course, you’ll learn how to make a Discord bot in Python and interact with several APIs. You’ll learn how to handle events, accept commands, validate and verify input, and all the basics that can help you create useful and exciting automations!
REAL PYTHON course

Implementing Proxy Pattern in Python
The proxy pattern is a design pattern that promotes loose coupleing and enhanced testabaility. Learn how to use this pattern in Python and when you might want to do so.
REDOWAN DELOWAR • Shared by Redowan Delowar

All the Things You Can Do With GitHub API and Python
Learn how to use GitHub’s Python client to create issues, gists, upload files, and more.
MARTIN HEINZ • Shared by Martin Heinz

Stock Analysis in Python
Explore financial data with object-oriented programming and additive models.
WILL KOEHRSEN

Web Scraping in 5 Minutes With Python & Excel
Compare web scraping Audible audiobook data in both Python and Excel.
COREY J. GALLON • Shared by Corey J. Gallon

Should You Ship the Cython Generated C Code or Not?
STEFAN BEHNEL

Vim as Python IDE
SASS TEKOVIC


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 →

nlp: Datasets and Evaluation Metrics for Natural Language Processing in NumPy, Pandas, PyTorch and TensorFlow
GITHUB.COM/HUGGINGFACE

byob: BYOB (Build Your Own Botnet)
GITHUB.COM/MALWAREDLLC

gpt-2: Code for the Paper “Language Models Are Unsupervised Multitask Learners”
GITHUB.COM/OPENAI

macOS-Simple-KVM: Tools to Set Up a Quick macOS VM in QEMU, Accelerated by KVM
GITHUB.COM/FOXLET

stylegan2: StyleGAN2 Official TensorFlow Implementation
GITHUB.COM/NVLABS

jina: Jina Is the Cloud-Native Neural Search Framework Powered by State-Of-The-Art AI and Deep Learning
GITHUB.COM/JINA-AI

OpenSAFELY
GITHUB.COM

django-siteforms
GITHUB.COM/IDLESIGN • Shared by pythonz

dissert: Disable Python Assertions Per File/Module
GITHUB.COM/BOOTHBY

📆🐍 Upcoming Python Events


⋅ PyGotham Call for Proposals Open Until July 5 PyGotham TV is the online version of NYC’s annual Python conference. It will take place this October 2nd and 3rd. The call for talk proposals is open now through July 5. You could propose an infomercial, a talk show, a comedy routine, a sitcom, or just a regular tech talk about Python or any technology subject that interests you. PyGotham is an eclectic conference that covers policy, culture, and art, along with standard tech and Python topics.

⋅ DjangoCon Europe 2020 Goes Virtual (And Is Free)

⋅ PyCon India 2020 RFP Now Open
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.