/Python

Strict Python Function Parameters

- Seth Michael Larson tl;dr: Seth is surprised how little he's seen this feature used, despite being included in Python 3.0, showing us the value of passing a parameter between the keyword-only and position-only parameters in the function signature.

featured in #285


Python Design Patterns

- Brandon Rhodes tl;dr: "My hope is that these pages make the patterns more discoverable — easier to find in web searches, and easier to read." Brandon covers design patterns in the following areas: Structural, Behavioral and Creational Patterns, as well as Python Specific and Inheritance Principles. 

featured in #284


Python Bytecode Explained

- Michael Moser tl;dr: "When a program is run, the python interpreter is first parsing your code and checking for any syntax errors, then it is translating the source code into a series of bytecode instructions; these bytecode instructions are then run by the python interpreter." Michael looks at the bytecode in loops, classes, function calls and more. 

featured in #283


Ultimate Guide To Text Similarity With Python

tl;dr: For humans, the 2 sentences "the bottle is empty" and "there is nothing in the bottle" mean the same thing despite being written in different formats. This post illustrates how we make an algorithm come to the same conclusion.

featured in #282


Python: Please Stop Screwing Over Linux Distros

- Drew DeVault tl;dr: "Everyone is frustrated with Python packaging. I call on the PSF to sit down for some serious, sober engineering work to fix this problem." Drew believes that Python packaging neglects the needs of Linux distros.

featured in #271


Peculiar Self-References

- Susam Pal tl;dr: The output of Susam's example shows simple Python code that create a self-referential list, although it's not obvious as to why, expecting the code to have failed with NameError. 

featured in #270


Where Does All The Effort Go? Looking At Python Core Developer Activity

- Lukasz Langa tl;dr: "One of the tasks given to me by the Python Software Foundation was to look at the state of CPython as an active software development project... What are people working on? Which standard libraries require most work? Who are the active experts behind which libraries? In this post I’m looking into our Git repository history and our Github PR data to find answers."

featured in #267


An Oral History Of Bank Python

- Cal Peterson tl;dr: "A look at a group of software systems not well known to the public, which I call "Bank Python". Bank Python implementations are effectively proprietary forks of the entire Python ecosystem which are in use at many (but not all) of the biggest investment banks. Bank Python differs considerably from the common, or garden-variety Python that most people know and love (or hate)."

featured in #266


Python 3.10: Cool New Features For You To Try

- Geir Arne Hjelle tl;dr: A tutorial that illustrates new features, such as "debugging with more helpful and precise error messages, using structural pattern matching to work with data structures, adding more readable and specific type hints." And more.

featured in #265


Tests Aren’t Enough: Case Study After Adding Type Hints To Urllib3

- Seth Michael Larson tl;dr: "A guide to developers looking to add type hints to a medium-to-large size project. This effort took many months for our team to complete so make sure to allocate enough time."

featured in #262