Issue #371

Python Pointers, Concurrency, PyPI 2FA, 3.8 News, and More

June 4, 2019

Python Pointers, Concurrency, PyPI 2FA, 3.8 News, and More
#371 – JUNE 4, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Pointers in Python: What’s the Point?
Get a clearer understanding of Python’s object model and learn why pointers don’t really exist in Python. You’ll also cover ways to simulate pointers in Python without the memory-management nightmare.
REAL PYTHON

Concurrency With Python: CSP and Coroutines
Nice overview of “communicating sequential processes” (CSP), a concurrency model similar to the notion of actor models, and how it can be implemented in Python.
YING WANG

Find a Python Job Through Vettery
Vettery specializes in developer roles and is completely free for job seekers. Interested? Submit your profile, and if accepted, you can receive interview requests directly from top companies seeking Python devs. Get started →
VETTERYsponsor

CNNs, Part 2: Training a Convolutional Neural Network
A nice walkthrough of deriving backpropagation for CNNs and implementing it from scratch in Python.
VICTOR ZHOU

Rewriting the Slack Python SDK
The lead maintainer of the Slack Python SDK gives a retrospective about refactoring the current SDK and migrating it from Python 2 to Python 3.
RODNEY URQUHART

Python’s Caduceus Syndrome
“Which of the two should the ecosystem tackle as a priority? Should they clean up all backwards compatibility first? (that would be PEP 594, ‘removing dead batteries from the standard library’) Should they focus on moving everyone over to the new features?”
VICKI BOYKIS

PyPI Now Supports 2-Factor Auth
Protect your PyPI login with two-factor authentication using Time-based One-time Password (TOTP) app.
ERNEST W. DURBIN III

Language Summit Lightning Talks (Summaries)
Summaries of the lightning talks presented at the Python Language Summit at PyCon 2019.
A. JESSE JIRYU DAVIS • Shared by Ricky White

PSF Q2 2019 Fundraiser
Support the Python Software Foundation by donating in the quarterly donation drive. Your donations help fund Python conferences, workshops, user groups, community web services, and more.
PYTHON.ORG


Discussions


Python 3.8 Performance News
“Today, code was checked in that substantially sped-up global lookups and builtin lookups. They are still slower than accessing locals and non-locals but only modestly so.”
RAYMOND HETTINGER

Is Anyone Using PyPy on Production?
REDDIT


Python Jobs


Senior Backend Engineer (Remote)
CLOSE

Lead Python Developer (Toronto, Canada)
KOGNITIV

SIPS Programmer (Madison, WI)
UNIVERSITY OF WISCONSIN

Senior Python Developer (Malta, Europe)
GAMING INNOVATION GROUP

Senior Backend Python Developer (Remote)
KIWI.COM

More Python Jobs >>>


Articles & Tutorials


Algorithms as Objects
“We usually think of an algorithm as a single function with inputs and outputs. […] This is fine until one actually attempts to implement it as a single function; all the little details add up until you’re left with a gigantic, monolithic function.”
ANDY G • Shared by Python Bytes

Making HTTP Requests With Python
The “requests” library is the de facto standard for making HTTP requests in Python. It abstracts the complexities of making requests behind a beautiful, simple API so that you can focus on interacting with services and consuming data in your application. This course shows you how to work effectively with “requests”, from start to finish.
REAL PYTHON video

Build a Custom Python Distro in Minutes
Create a free account and: choose from our 500+ vetted packages, automatically pull in and resolve dependencies, install the distro in a virtual environment with a single command. Supports Python 3.6+ on Linux. Try now →
ACTIVESTATEsponsor

Object-Oriented Programming in Python vs Java
Learn about the practical differences in Python vs Java for object-oriented programming. By the end, you’ll be able to apply your knowledge to Python, understand how to reinterpret your understanding of Java objects to Python, and use objects in a Pythonic way.
REAL PYTHON

Accuracy: From Classification to Clustering Evaluation
Accuracy is often used to measure the quality of a classification. It is also used for clustering. However, the scikit-learn accuracy_score function only provides a lower bound of accuracy for clustering. This blog post explains how accuracy should be computed for clustering.
STANISLAS MORBIEU • Shared by Stanislas Morbieu

Python Function Unpacking (*args and **kwargs)
15 quick examples to get a new Python coder comfortable with *args and **kwargs as parameters.
CARLOS BALDERAS • Shared by Carlos Balderas

Evangelizing Python For Business
“Five to 10 years ago, it might have been quite an uphill battle to try to bring Python into your organization to solve your business problems. With the rise of Python’s popularity in the Data Science world, you will have a much smaller hill to climb.”
CHRIS MOFFITT

Dataclasses and Attrs: When and Why
Python 3.7 introduced dataclasses, which design is based on the attrs library. This article shows the way the author uses dataclasses and attrs, why they think you should use both, and why attrs is still very relevant.
FLAVIO CURELLA

Python Chat Tutorial With Django and React
Discover how to build a Python chat application with Django and React using Stream Chat with this in-depth tutorial.
STREAMsponsor

Using Data Validation for Robust APIs
How using schema-based data validation tools can help you write more robust web APIs.
ENZO CALAMIA

An Overview of Python’s Datatable Package
Datatable is a Python library for efficient multi-threaded data processing, with the support for out-of-memory datasets.
PARUL PANDEY

Introduction to Git and GitHub for Python Developers
What is Git, what is GitHub, and what’s the difference? Learn the basics of Git and GitHub from the perspective of a Pythonista in this step-by-step course.
REAL PYTHON video

Production Django Deployments on Heroku
How to simplify the process of deploying, maintaining, and scaling a production-grade Django app on Heroku.
TESTDRIVEN.IO


Projects & Code


PugSQL: Create a Python Module of Database Functions From a Set of SQL Files on Disk
PUGSQL.ORG

lineflow: Simple NLP Data Loader for All Deep Learning Frameworks
GITHUB.COM/YASUFUMY • Shared by Yasufumi Taniguchi

rtv: Browse Reddit From Your Terminal
GITHUB.COM/MICHAEL-LAZAR

pico-pytest: Minimalistic Re-Implementation of PyTest Core Functionality for Educational Purposes
GITLAB.COM/OBESTWALTER

gluon-ts: Probabilistic Time Series Modelling in Python
GITHUB.COM/AWSLABS

Parsl: Parallel Scripting Language in Python
PARSL-PROJECT.ORG

both: Python 2 + 3 Compatibility Layer
BAKKERTHEHACKER.GITHUB.IO

tensorwatch: Debugging, Monitoring and Visualization for Deep Learning and Reinforcement Learning
GITHUB.COM/MICROSOFT

metadsl: Framework for Domain Specific Languages in Python
QUANSIGHT.ORG

BlackSheep: Fast HTTP Server/Client Microframework for Python Asyncio
GITHUB.COM/ROBERTOPREVATO

materials: Python Exercises and Example Projects
GITHUB.COM/REALPYTHON

📆🐍 Upcoming Python Events


⋅ PyCon Israel 2019 June 3 to June 6, 2019

⋅ Canberra Python Meetup June 6, 2019

⋅ Python Miami June 8 to June 9, 2019

⋅ PyDelhi User Group Meetup June 8, 2019

⋅ Leipzig Python User Group Meeting June 11, 2019

⋅ PyCon CZ 2019 June 14 to June 17, 2019

⋅ Dash Conference July 16–17 in NYC
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.