Found 41 bookmarks
Newest
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
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
Björn Ricks
Björn Ricks
Context Manager Tutorials
·bjoernricks.github.io·
Björn Ricks
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
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
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
Data Classes in Python 3.7+ (Guide) – Real Python
Data Classes in Python 3.7+ (Guide) – Real Python
Data classes are one of the new features of Python 3.7. With data classes you do not have to write boilerplate code to get proper initialization, representation and comparisons for your objects.
·realpython.com·
Data Classes in Python 3.7+ (Guide) – Real Python
How to Split a Python List or Iterable Into Chunks – Real Python
How to Split a Python List or Iterable Into Chunks – Real Python
This tutorial provides an overview of how to split a Python list into chunks. You'll learn several ways of breaking a list into smaller pieces using the standard library, third-party libraries, and custom code. You'll also split multidimensional data to synthesize an image with parallel processing.
·realpython.com·
How to Split a Python List or Iterable Into Chunks – 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
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
Primer on Python Decorators – Real Python
Primer on Python Decorators – Real Python
In this introductory tutorial, we'll look at what Python decorators are and how to create and use them.
·realpython.com·
Primer on Python Decorators – Real Python