Python Newsletter, January 31, 2023

Hi From CodeSolid!

Wow, I’ve noticed a lot of new folks have been signing up for this newsletter lately, so let me take this opportunity to welcome the newcomers and repeat my thanks to ALL of you who’ve signed up for my weekly CodeSolid + Stuff Around The Internet Newsletter.


I recently picked up the Kindle edition of CPython Internals:  Your Guide to the Python 3 Interpreter, which is a great book if you’ve ever wondered how the Python language works at a low level.  This book begins with instructions on building the C code (which you can also find online) but goes beyond that by taking you through the parser and compiler and making changes to the code yourself.  It’s not for the faint of heart, but I find it quite fun!  I may post a more in-depth review at some point.

Around the Web

PEP 704 - Require Virtual Environments for Package Installers
Python has many great features and one unruly, awful, drunken elephant in the room:  dependency management.  I like this PEP’s approach of installing into a Virtual environment by default, but as other users have pointed out, one way or the other, we need to finally get this right.

Resource Abstractions to be Deprecated in AWS Boto3
If you’ve worked in boto3 (Amazon’s Python client for AWS services), you may know that there are generally two interfaces, an easy-to-use, object-oriented one (the resource abstraction), and one that is closer to the Restful API calls that is more difficult to understand and debug.  This post is bad news if you’re using boto3 heavily.  If you are, now’s the time to weigh in.

JupySQL:  Better SQL In Jupyter
In response to my article on Using DuckDB with Pandas and IPython-SQL, a JupySQL developer asked me to mention JupySQL.  I haven’t had time to work up an article on this yet, but I think it adds some cool features.

Reddit Discussion on Python Optimizers
In this thread, the original poster shared a link to an article about reasons to avoid Cython.  One of the things I like about Reddit is seeing the back and forth and the many alternate suggestions that arise when such an issue gets raised.  Although the controversy can sometimes be daunting (I know, as I’ve had my tail feathers ruffled once or twice), the back and forth can often teach you a lot more than the original post can.  This thread is an excellent example of that.