Language

41 bookmarks
Custom sorting
14 Advanced Python Features
14 Advanced Python Features
A collection of advanced Python features that I've found interesting, underrated, or unique - as someone who's seen a lot of Python code.
·blog.edward-li.com·
14 Advanced Python Features
Exploring flexicache
Exploring flexicache
An exploration of using flexicache for caching in Python.
·daniel.feldroy.com·
Exploring flexicache
Module itertools overview
Module itertools overview
This article briefly describes the iterators available in the Python module itertools and how to use them.
·mathspp.com·
Module itertools overview
Python 3.12 Preview: Static Typing Improvements – Real Python
Python 3.12 Preview: Static Typing Improvements – Real Python
In this tutorial, you'll preview the new static typing features in Python 3.12. You'll learn about the new syntax for type variables, making generics simpler to define. You'll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments.
·realpython.com·
Python 3.12 Preview: Static Typing Improvements – Real Python
A Guide to Python's Weak References Using weakref Module
A Guide to Python's Weak References Using weakref Module
p Chances are that you never touched and maybe haven't even heard about Python's code class="inline"weakref/code module. While it might not be common...
·martinheinz.dev·
A Guide to Python's Weak References Using weakref Module
Python's Built-in Functions: A Complete Exploration – Real Python
Python's Built-in Functions: A Complete Exploration – Real Python
In this tutorial, you'll learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.
·realpython.com·
Python's Built-in Functions: A Complete Exploration – Real Python
What Is the __pycache__ Folder in Python? – Real Python
What Is the __pycache__ Folder in Python? – Real Python
In this tutorial, you'll explore Python's __pycache__ folder. You'll learn about when and why the interpreter creates these folders, and you'll customize their default behavior. Finally, you'll take a look under the hood of the cached .pyc files.
·realpython.com·
What Is the __pycache__ Folder in Python? – Real Python
Python Sequences: A Comprehensive Guide – Real Python
Python Sequences: A Comprehensive Guide – Real Python
This tutorial dives into Python sequences, which is one of the main categories of data types. You'll learn about the properties that make an object a sequence and how to create user-defined sequences.
·realpython.com·
Python Sequences: A Comprehensive Guide – Real Python
The Complete Python Development Guide
The Complete Python Development Guide
Develop Python-based apps with confidence by mastering the tools needed to ship well-tested, high-quality code.
·testdriven.io·
The Complete Python Development Guide
What's Lazy Evaluation in Python? – Real Python
What's Lazy Evaluation in Python? – Real Python
This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you'll clearly understand which approach is best for you, depending on your needs.
·realpython.com·
What's Lazy Evaluation in Python? – Real Python
Python F-String Codes I Use Every Day - Pybites
Python F-String Codes I Use Every Day - Pybites
I use f-strings every day. The irony is I also every day end up searching the Web to find the correct format to use. Until one day I thought a
·pybit.es·
Python F-String Codes I Use Every Day - Pybites
Class method vs Static method in Python - GeeksforGeeks
Class method vs Static method in Python - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
·geeksforgeeks.org·
Class method vs Static method in Python - GeeksforGeeks
Raising and Handling Python Exceptions – Real Python
Raising and Handling Python Exceptions – Real Python
In this course, you'll learn what an exception is and how it differs from a syntax error. You'll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.
·realpython.com·
Raising and Handling Python Exceptions – Real Python
Python's filter(): Extract Values From Iterables – Real Python
Python's filter(): Extract Values From Iterables – Real Python
In this step-by-step tutorial, you'll learn how Python's filter() works and how to use it effectively in your programs. You'll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.
·realpython.com·
Python's filter(): Extract Values From Iterables – Real Python
WebAssembly with Python
WebAssembly with Python
Python language is one of the most accessible programming languages available as it has simplified...
·wasm.builders·
WebAssembly with Python
Björn Ricks
Björn Ricks
Context Manager Tutorials
·bjoernricks.github.io·
Björn Ricks
How to Catch Multiple Exceptions in Python – Real Python
How to Catch Multiple Exceptions in Python – Real 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.
·realpython.com·
How to Catch Multiple Exceptions in Python – Real Python
3 Tips For Writing Pythonic Code
3 Tips For Writing Pythonic Code
Learn what it means for code to be Pythonic and explore three ways you can write clear, Pythonic code right now.
·davidamos.dev·
3 Tips For Writing Pythonic Code
State Pattern in Python
State Pattern in Python
Learn to implement state pattern and finite state machines using Python.
·auth0.com·
State Pattern in Python
How to Write Cleaner Python Code Using Abstract Classes
How to Write Cleaner Python Code Using Abstract Classes
What are Abstract Classes? When are they useful? When should you use them? Let's take a look!
It turns out that the Abstract class is what we need. Essentially it forces its subclasses to implement all of its abstract methods. It is a class that represents what its subclasses look like.
·blog.teclado.com·
How to Write Cleaner Python Code Using Abstract Classes
Merge multiple dictionaries and add items to a dictionary in Python | note.nkmk.me
Merge multiple dictionaries and add items to a dictionary in Python | note.nkmk.me
This article explains how to add a new item to a dictionary (dict) or update the value of an existing item in Python. It is also possible to merge multiple dictionaries.Add or update an item in the dictionary by specifying a key Merge multiple dictionaries: update(), {}, dict(), |, |= Add or update ...
·note.nkmk.me·
Merge multiple dictionaries and add items to a dictionary in Python | note.nkmk.me
Iterators and Iterables in Python: Run Efficient Iterations – Real Python
Iterators and Iterables in Python: Run Efficient Iterations – Real Python
In this tutorial, you'll learn what iterators and iterables are in Python. You'll learn how they differ and when to use them in your code. You'll also learn how to create your own iterators and iterables to make data processing more efficient.
·realpython.com·
Iterators and Iterables in Python: Run Efficient Iterations – Real Python