Python Types in the Wild, Making Packages in 2021, How to Contribute to Python, and More

#468 – APRIL 13, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python 3 Types in the Wild: A Tale of Two Type Systems
This academic paper from researchers at the Rensselaer Polytechnic Institute and IBM TJ Watson Research Center examines the MyPy and PyType tools and explores how Python developers use type annotations. The researchers collected over 70,000 Python GitHub repositories and found that only 2,678 had Python 3-style type annotations, most of which fail to type-check with either of the two tools. The paper’s third section is quite accessible and has a lot of interesting analysis.
INGKARAT RAK-AMMOUTKIY ET AL.

How to Make an Awesome Python Package in 2021
The headache often associated with Python packaging is starting to fade away. Don’t believe me? Check out this step-by-step guide to creating and setting up a package repository. You’ll learn how to create a test package on TestPyPI, create a pyproject.toml file with flit, set-up linters and tests, GitHub Actions workflows, and more.
ANTON ZHIYANOV

Datadog APM Provides Deeper, More Meaningful Trace Data to Quickly Resolve Application Problems
Datadog’s distributed tracing and APM generates flame graphs from real requests, enabling teams to visualize app performance in real-time. Engineering teams can seamlessly pivot to related logs and metrics without switching tools for fast troubleshooting and MTTR. Try Datadog APM free →
DATADOGsponsor

Start Contributing to Python: Your First Steps
In this quick introduction, you’ll see how you can take your first steps toward contributing to Python. You’ll discover various ways you can contribute and get to know some of the resources that will help you along the way.
REAL PYTHON

Start Managing Multiple Python Versions With pyenv
Learn how to install multiple Python versions and switch between them with ease, including project-specific virtual environments, with pyenv.
REAL PYTHON course

PyCharm 2021.1 Is Out!
This release includes faster indexing, enhanced WSL 2 support, and an exciting new collaboration tool called Code With Me.
JETBRAINS.COM • Shared by Bartosz Zaczyński

PDFx V1.4.1 Is Now Available
PDFx is a tool to extract text, links, references, and metadata from PDF files and URLs. This release doesn’t include many new features but is rather a full update of the package repository to current Python standards, including testing and coverage, linting and static checks, GitHub workflows, and more.
METACHRIS.COM

Wing Python IDE 7.2.9 Released
This release includes remote development for 64-bit Raspberry Pi, improved auto-closing of quotes, optimized change tracking, and more.
WINGWARE.COM

PyPy v7.3.4 Released
This release includes two interpreters supporting the syntaxes for Python 2.7 and 3.7.
PYPY.ORG


Discussions


Why Does Pandas None | True Return False When Python None or True Returns True?
| represents the “or” operation, but when used in a boolean index in Pandas, it doesn’t behave the same way as Python’s or as you might expect — if you go off of name alone. The | operator is a bitwise operator, which only works on integer values. In fact, one could say that Python doesn’t really have a true logical “or” operator, since technically or is a short-circuit operator.
STACK OVERFLOW


Python Jobs


Intermediate Python Developer (Boulder, CO, USA)
UPLIGHT

Software Engineer (New York, NY, USA)
TRUVERIS

Data Engineer (Seattle, WA, USA)
DOXO

Software Development Engineer (Indianapolis, IN, USA)
TOC LOGISTICS INTERNATIONAL, INC.

More Python Jobs >>>


Articles & Tutorials


Using PyTorch + NumPy? You’re Making a Mistake
There’s a subtle bug that’s easy to introduce when using these packages, and it’s likely that many projects suffer from the bug. The issue has to do with how data is loaded, pre-processed, and augmented in PyTorch. If your training pipeline is bottlenecked by data pre-processing, you might decide to load the data in parallel. The canonical way of achieving this results in identical augmentations and can lead to performance degradation, but there’s a way to fix the problem.
TANEL PÄRNAMAA

How Python Dictionaries Work
Dictionaries are an important part of Python — not just because Python programmers use them a lot, but also because they are used internally by the Python interpreter to run Python code. In this in-depth article, you’ll learn about hash tables and hash functions as well as how Python dictionaries work behind the scenes.
VICTOR SKVORTSOV

[Free Virtual] How We Built Real-Time Full-Text Website Search with RediSearch
Join us at RedisConf where we feature this topic and more than 60 breakout sessions, 25% of which will be presented by Redis Enterprise customers. Learn about real-world use cases across three tracks. Register today →
REDIS LABSsponsor

Computer Vision and Embroidery
Andrew Healey’s wife wanted to find out what thread colors were used in some of the embroidery hoop images posted to the r/embroidery subreddit, so he embarked on a weekend project to solve the problem using the OpenCV computer vision library. Learn how he did it in this short, fun read, and then check out the source code over on his GitHub repository.
ANDREW HEALEY

Getting Started With Refactoring Your Python Code
Do you think it’s time to refactor your Python code? What should you think about before starting this task? Listen Brendan Maginnis and Nick Thapen from discuss Sourcery in this episode of the Real Python Podcast. Sourcery is an automated refactoring tool that integrates into your IDE and suggests improvements to your code.
REAL PYTHON podcast

The k-Nearest Neighbors (kNN) Algorithm in Python
k-Nearest Neighbors (kNN) is a non-linear supervised machine learning algorithm suitable for both classification and regression problems. In this tutorial, you’ll learn all about the kNN algorithm in Python, including how to implement kNN from scratch, kNN hyperparameter tuning, and improving kNN performance using bagging.
REAL 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 →

superset: A Data Visualization and Data Exploration Platform
GITHUB.COM/APACHE

Python-Raytracer: A Basic Ray Tracer That Exploits NumPy Arrays and Functions to Work Fast
GITHUB.COM/RAFAEL-FUENTE

layout-parser: A Python Library for Document Layout Understanding
GITHUB.COM/LAYOUT-PARSER

jurigged: Hot Reloading for Python
GITHUB.COM/BREULEUX

github-actions-updater: Like GitHub’s Dependabot but for GitHub Actions
GITHUB.COM/SAADMK11 • Shared by Maksudul Haque

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) April 14, 2021

⋅ GeoPython 2021 April 22 – 24, 2021

⋅ PyCon Israel 2021 (Virtual) May 2 – 3, 2021

⋅ PyCon 2021 (Virtual) May 12 – 18, 2021

⋅ DjangoCon Europe 2021 (Virtual) June 2 – 6, 2021

⋅ PyCon India 2021 September 17 – 20, 2021
Happy Pythoning!
Copyright © 2021 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

Buying a House With Python, OOP in Python vs. Java, What is Werkzeug, and More

Tuesday, April 6, 2021

How I Beat the Berlin Rental Market With a Python Script #467 – APRIL 6, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo How I Beat the Berlin Rental Market With a Python Script Learn how one Python

Full-Text Search in 150 Lines, OrderedDict vs. dict, Checking on the Suez Canal, and More

Wednesday, March 31, 2021

Many Models Workflows in Python #466 – MARCH 30, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Many Models Workflows in Python Learn how to organize models into dataframes for exploratory data

Python Testing Style Guide, Performance Management, Pygame Asteroids Clone, and More

Tuesday, March 23, 2021

Python Testing Style Guide #465 – MARCH 23, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Python Testing Style Guide Need a quick yet thorough guide to testing? This excellent resource is for you.

Pythonic Pattern Matching, PyQt vs. PySide, Speeding Up Pandas, and More

Tuesday, March 16, 2021

Pattern Matching Tutorial for Pythonic Code #464 – MARCH 16, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Pattern Matching Tutorial for Pythonic Code Structural pattern matching is coming in

Poison Packages on PyPI, Python Synthesizers, Monoliths to Managed Architecture, and More

Tuesday, March 9, 2021

Poison Packages: User Hits Python Community With 4000 Fake Modules #463 – MARCH 9, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Poison Packages: User Hits Python Community With 4000 Fake Modules

You Might Also Like

SWLW #639: Removing stuff is never obvious yet often better, It never gets easier, and more.

Thursday, February 27, 2025

Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found

ASP.NET Core News - 02/21/2025

Thursday, February 27, 2025

View this email in your browser Get ready for this weeks best blog posts about ASP.NET Core! 10 Essential ASP.NET Core Features to Remember — by AssisZang Building cloud application with .NET Aspire —

Post from Syncfusion Blogs on 02/21/2025

Thursday, February 27, 2025

New blogs from Syncfusion ® Build an AI-Powered Smart Appointment Booking App Using WinUI Scheduler By Jeyasri Murugan This blog explains how to build an AI-powered smart appointment booking app using

⚙️ Watch a robot put away groceries

Thursday, February 27, 2025

Plus: AISI is on its last legs ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Issue #581: Finishing your dream project, Arnis, and The Supernatural Power Troll

Thursday, February 27, 2025

View this email in your browser Issue #581 - February 21st 2025 Weekly newsletter about Web Game Development. If you have anything you want to share with our community please let me know by replying to

How AI went mainstream overnight

Thursday, February 27, 2025

5 scrapped Apple products; Google career tool; Microsoft Majarona -- ZDNET ZDNET Tech Today - US February 21, 2025 Generative AI piled onto a mountain overlaid on a blue-purple background. 10 key

The silly DeepSeek panic

Thursday, February 27, 2025

plan for an uncertain future ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

iOS Cocoa Treats

Thursday, February 27, 2025

View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. Creating Custom SF Symbols Introduced in 2019 with 1000

Mapped | Average Wages in OECD Countries 📊

Thursday, February 27, 2025

This infographic visualizes the highest and lowest average annual wages across 34 OECD countries, showing how wages vary globally. View Online | Subscribe | Download Our App Great stories start with

Welcome to How-To Geek Newsletters

Thursday, February 27, 2025

How-To Geek Logo Hi, Welcome to the How-To Geek newsletters! We're delighted to have you as part of our community! Our newsletter includes highlights of the best stories, instructive how-to manuals