This repository contains some Python notes.
General:
DocStrings:
- PEP 257: Docstring Conventions
- Google Python Style Guide: docstrings
- Example Google style docstrings
- operators
- documentation
- inheritance
- functions / decorators
- logging
- type checking
- unpack / splat
- debug
- environment
- lists
- files
- directories
- conversions
- dictionaries
- strings
- regular expressions
- comprehensions
- generator expression
- named tuple
- exception
- object
- sorting
- module
- socket
- closure
- filters
Good packages:
- PlantUML automation
- Visit all entries within a data structure
- Calculate fingerprints of all files within a given directory
- Redis producer and consumer
- Timestamps comparaison
- Fun with QR codes
Tuples vs Lists
A tuple is an assortment of data, separated by commas, which makes it similar to the Python list, but a tuple is fundamentally different in that a tuple is "immutable." This means that it cannot be changed, modified, or manipulated.
Sets vs Lists and Tuples
Sets vs Lists and Tuples. Lists and tuples are standard Python data types that store values in a sequence. Sets are another standard Python data type that also store values. The major difference is that sets, unlike lists or tuples, cannot have multiple occurrences of the same element and store unordered values