No description
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| examples | ||
| tests | ||
| .gitignore | ||
| fib.py | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
How to install
git clone https://git.afpy.org/mdk/2026-11
cd 2026-11
pip install .
How to build
pip install build
python -m build
How to upload
Testez avec https://test.pypi.org/
pip install twine
twine upload dist/*
Nommage
Les fonctions : en_snake_case, get_HTTP_status
Les classes : EnCamelCase
Les attributs privés : _préfixés_par_un_underscore, par convention.
Les attributés manglés : __préfixés_par_deux_underscores, ~innutiles.
Les dunder : __quadruple_underscore__ : appartient à Python (on a pas le droit d’en inventer), c’est des protocoles.
__init__« dunder init »__repr__« dunder repr »
Types modifiables (prévus pour être modifiés)
list, dict, set, function, …
Types immuables (pour les modifier il faut bidouiller dans la RAM : mauvaise idée)
int, str, bool, float, frozenset, type, …