#609 – DECEMBER 26, 2023
A lot has happened in the Python ecosystem in 2023 and with our final issue of the year, we’re recapping the most popular links in PyCoders this year. That’s right, the most clicked articles, discussion, and the five most clicked projects as well.
Here’s to you, dear reader. Thanks for continuing to be with us at PyCoder’s Weekly. I’m sure 2024 will be just as interesting as 2023. And if in 2024 you come across a cool article or a project you think deserves notice, send it to us.
Happy Pythoning!
— The PyCoder’s Weekly Team
Christopher Trudeau, Curator
Dan Bader, Editor
Design and Guidance: Object-Oriented Programming in Python
In this video course, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable.
REAL PYTHON course
Python 3.12 Preview: More Intuitive and Consistent F-Strings
In this tutorial, you’ll preview one of the upcoming features of Python 3.12, which introduces a new f-string syntax formalization and implementation. The new implementation lifts some restrictions and limitations that affect f-string literals in Python versions lower than 3.12.
REAL PYTHON
Learning About Code Metrics in Python With Radon
Radon is a code metrics tool. This article introduces you to it and teaches you how you can improve your code based on its measurements.
MIKE DRISCOLL
Speeding Up Your Code When Multiple Cores Aren’t an Option
Parallelism isn’t the only answer: often you can optimize low-level code to get significant performance improvements.
ITAMAR TURNER-TRAURING
Discussions
“Why Python Is Terrible”
HACKER NEWS
Kill a Developer in 4 Words or Less 😂
Some favourites: “Let’s deploy this Friday!”, “Works on my machine!”, “You’ve got merge conflicts”
TWITTER
Python Jobs
Senior Python Architect and Tech Lead (America)
Six Feet Up
Python Tutorial Editor (Anywhere)
Real Python
Software Engineer – Intern (Summer 2024) (Dallas, TX, USA)
Causeway Capital Management
More Python Jobs >>>
Articles & Tutorials
How to Catch Multiple Exceptions in Python
In this how-to tutorial, you’ll learn different ways of catching multiple Python exceptions. You’ll review the standard way of using a tuple in the except clause, but also expand your knowledge by exploring some other techniques, such as suppressing exceptions and using exception groups.
REAL PYTHON
78% MNIST Accuracy Using GZIP in Under 10 Lines of Code
MNIST is a collection of hand-written digits that is commonly used to play with classification algorithms. It turns out that some compression mechanisms can double as classification tools. This article covers a bit of why with the added code-golf goal of a small amount of code.
JAKOBS.DEV
ChatGPT: Your Personal Python Coding Mentor
Large language models have gained popularity since OpenAI released ChatGPT. In this tutorial, you’ll learn how to use ChatGPT as your Python coding mentor. You’ll study a variety of use cases, learn how to interpret results, and learn to beware of incorrect and irrelevant responses.
REAL PYTHON
SOLID Principles: Improve Object-Oriented Design in Python
In this tutorial, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable.
REAL PYTHON
Mojo, a Superset of Python
Mojo is a new programming language, which is a superset of Python. It aims to fix Python’s performance and deployment problems.
JEREMY HOWARD
6 Cool Things You Can Do With the functools
Module
The functools
module in the standard library has all sorts of useful bits and pieces. This article talks about six of them: caching, writing fewer dunder methods, freeze functions, generic functions, better decorators, and reduce()
.
BOB BELDERBOS
Discover bpython
: A Python REPL With IDE-Like Features
In this tutorial, you’ll learn about bpython
, an alternative Python REPL that brings code suggestions and many other IDE-like features to the terminal. Once you discover how much bpython
can improve your productivity, you’ll never want to return to using the vanilla Python REPL again.
REAL PYTHON
Python Classes: The Power of Object-Oriented Programming
In this tutorial, you’ll learn how to create and use full-featured classes in your Python code. Classes provide a great way to solve complex programming problems by approaching them through models that represent real-world objects.
REAL PYTHON
How to Annotate Methods That Return self
In this tutorial, you’ll learn how to use the Self type hint in Python to annotate methods that return an instance of their own class. You’ll gain hands-on experience with type hints and annotations of methods that return an instance of their class, making your code more readable and maintainable.
REAL PYTHON
Boost Your Coding Productivity With Ptpython
Learn how to enhance your Python development workflow with auto-completion, syntax highlighting, history navigation, and more. In this tutorial, you’ll walk through the fundamentals of ptpython, covering installation, basic usage, and advanced features.
REAL PYTHON
AsyncIO: Why I Hate It
Charles is the creator of Peewee ORM and often gets the question “when will it support asyncio
?” In this opinion piece he talks about why he doesn’t like asyncio
and the alternatives he prefers.
CHARLES LEIFER opinion
Projects & Code
nicegui: Create Web-Based UI With Python
GITHUB.COM/ZAUBERZEUG
Comprehensive Python Cheatsheet
GTO76.GITHUB.IO
csvkit: A Suite of CSV Utilities
GITHUB.COM/WIRESERVICE
pynimate: Python Package for Statistical Data Animations
GITHUB.COM/JULKAAR9
Cross Platform GUI Framework Based on HTML/CSS
GITHUB.COM/SCRIPTIOT • Shared by dragondjf
Happy Pythoning!
This was PyCoder’s Weekly Issue #609.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]
Source:: PyCoder’s