Issue #542

List Comprehensions, CodeWhisperer, DoS Exposure, and More

Sept. 13, 2022

List Comprehensions, CodeWhisperer, DoS Exposure, and More
#542 – SEPTEMBER 13, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
List Comprehensions Are More Powerful Than You Think
List comprehensions have a lot of depth. This article takes you beyond the basics and explains nested comprehensions, multiple conditionals, exceptions, breaking the loop, and more.
MARTIN HEINZ • Shared by Martin Heinz

Can Amazon’s CodeWhisperer Write Better Python Than You?
Amazon’s CodeWhisperer is a machine-learning based coding assistant which is currently in beta. Learn about its capabilities and limitations.
BRIAN TARBOX • Shared by Adam Buggia

Try atoti, A Free Collaborative Python BI Analytics Platform
atoti is a BI analytics platform combining a python library and a web application helping Quants, Data Analyst, Data Scientist and Business Users to collaborate, analyze and translate their data into business KPIs →
ACTIVEVIAMsponsor

Possible DoS Exposure in Large int to str Conversions
“A Denial Of Service (DoS) issue was identified in CPython because we use binary bignum’s for our int implementation. A huge integer will always consume a near-quadratic amount of CPU time in conversion to or from a base 10 (decimal) string with a large number of digits. No efficient algorithm exists to do otherwise.”
GITHUB.COM/PYTHON

Django Bugfix Release: 4.1.1
DJANGO SOFTWARE FOUNDATION

Python 3.10.7, 3.9.14, 3.8.14, and 3.7.14 Released
CPYTHON DEV BLOG

TensorFlow 2.10 Released
TENSORFLOW.ORG


Discussions


PyPI Is Running a Survey on the State of Python Packaging
PyPI is running a survey on the state of packaging in Python. Fill in the survey and tell the world what you told them in the HN discussion.
HACKER NEWS

Should PIP_REQUIRE_VIRTUALENV Be the Default in pip?
PYTHON.ORG


Python Jobs


Senior Software Engineer Backend
MUCK RACK 📍 USA

Senior Backend Engineer
DOIST 📍 ANYWHERE

Django Developer
ABNORMAL SECURITY 📍 USA

Python Developer
SIGMA ASSESSMENT SYSTEMS, INC. 📍 ANYWHERE

Senior Software Engineer, Python (Backend)
ASSEMBLYAI 📍 ANYWHERE

Software Development Lead
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Software Engineer - Backend/Python (100% Remote)
CLOSE 📍 ANYWHERE

Software Engineer (Los Angeles or Dallas)
CAUSEWAY CAPITAL MANAGEMENT LLC 📍 LOS ANGELES, CA, USA

Enterprise GIS Data Engineer (Information Systems Analyst)
CITY OF SAN JOSE 📍 SAN JOSE, CA, USA

More Python Jobs >>>


Articles & Tutorials


HTML and CSS for Python Developers
There’s no way around HTML and CSS when you want to build web apps. Even if you’re not aiming to become a web developer, knowing the basics of HTML and CSS will help you understand the web better. In this tutorial, you’ll get an introduction to HTML and CSS for Python programmers.
REAL PYTHON

Recursion in Python With Al Sweigart
Have you wanted to understand recursion and how to use it in Python? Are you familiar with the call stack and how it relates to tracebacks? This week on the show, Al Sweigart talks about his new book, “The Recursive Book of Recursion.”
REAL PYTHON podcast

Scout APM: A Python Performance Monitoring Tool
Scout’s APM tool pinpoints and prioritizes performance and stability issues in Python applications. With Scout’s tracing logic, developers can detect the exact line of code causing the performance abnormality, and with detailed backtraces, you can fix the issue before customers ever notice →
SCOUT APMsponsor

Bluetooth Your Old Speakers With a Raspberry Pi
This article describes how to take an old pair of PC speakers and make them usable with Bluetooth. Learn about the PipeWire library, how to configure your Raspberry Pi, and the short Python script you need to glue it all together.
FREDERIC DANIS

The Jupyter+git Problem Is Now Solved
Git and Jupyter just don’t get along. Merge conflicts break things, but not anymore. The nbdev2 package provides tools to allow merges in your Jupyter notebook. This article explains the problem and how it was addressed.
JEREMY HOWARD

Dangerous Pickles
A light introduction to the Python pickle protocol, the Pickle Machine, and constructing malicious pickles. Learn why your code shouldn’t trust arbitrary serialized objects and the dangers of pickle-bombs.
EVAN SANGALINE

Swift Was Poised to Replace Python. Then It Tanked
In the early days of Swift, its growth was matching that of Python, but then it leveled out. In this opinion piece, Ari discusses why he thinks Python is still going strong and why Swift is falling away.
ARI JOURY

CData Software: The Easiest Way to Connect Python with Data
Simple Python data access to more than 250 cloud applications, and data sources. Connect, Integrate, and Automate your data from Python, or any other application or tool.
CDATA SOFTWAREsponsor

Fully-Typed Decorators With Optional Arguments
Type annotation for decorators can be a bit more challenging than regular functions, especially if they support optional keyword arguments. Learn how to type them so that they pass mypy’s strict mode.
LEMONFOLD.IO • Shared by Stefan Ulbrich

Building Command Line Interfaces With argparse
In this step-by-step Python video course, you’ll learn how to take your command line Python scripts to the next level by adding a convenient command line interface that you can write with argparse.
REAL PYTHON course


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 →

django-functest: Helpers for Functional Tests in Django
GITHUB.COM/DJANGO-FUNCTEST

Visual Python Tkinter GUI Creator
VISUALTK.COM

django-htmx-patterns: Coding Patterns for Django & HTMX
GITHUB.COM/SPOOKYLUKEY

docquery: Extract Information From Documents
GITHUB.COM/IMPIRA

Python Conference Calendar With Proposal Deadlines
PYTHONDEADLIN.ES • Shared by Geir Arne Hjelle

📆🐍 Upcoming Python Events


PyHEP 2022
September 12 to September 17, 2022

Hybrid Panel: CI Tools We Use at IndyPy
September 13 from 7-9pm ET

Santa Cruz Python Meetup
September 14, 2022

Weekly Real Python Office Hours Q&A (Virtual)
September 14, 2022

Python Northwest
September 15, 2022

PyLadies Dublin
September 15, 2022

MadPUG
September 15 to September 16, 2022

PyCon UK 2022
September 16 to September 19, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.