You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

notes.md 1.8 KiB

6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
5 years ago
5 years ago
6 years ago
6 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Ce fichier contient diverses notes utiles à la préparation des futurs cours.
  2. # Sujets à évoquer
  3. ## next chapter
  4. * Let's create *explicit* hidden interfaces!
  5. ## bits
  6. * base class / derived class -> more vocabulary
  7. * attributes on functions (you never know)
  8. * `__call__`, functors
  9. * scopes, closures, global, nonlocal
  10. * private
  11. * no overlaod in python
  12. * several `__init__` ? Nope, alternative constructors
  13. * https://code-maven.com/slides/python-programming/class-methods-alternative-constructor
  14. * properties on classes
  15. * stable sorts
  16. * dict: setdefault
  17. * listes: pop prend un argument
  18. * slices takes a step too [::-1] -> reverse
  19. * with: contextmanager, ContextDecorator
  20. * short circuit in if: `if a is not None and a.b == 42`
  21. ## big stuff
  22. * exceptions: try, catch, finally
  23. * files: "wa", accès séquentiel (chunk = file.read(chunk_size))
  24. * style: trailing white space, editor configuration,
  25. * [formatage de strings](fragments/format.md)
  26. * liste par compréhension et filtres
  27. * `help()`
  28. * packages, libraries tierces
  29. * requests, HTTP protocol (headers, methodes, urls, anchors, links ...)
  30. * décorateurs
  31. * regular expressions
  32. * Données binaires, encodage (binaire, ASCII, hexadécimal, unicode ...)
  33. * virtualenv, pip, et bibliothèques tierces
  34. * IDEs: don't use them ... yet (or ever)
  35. * linters,
  36. * déboguage
  37. * demo: pyflakes - black
  38. * tests: pytest, TDD
  39. # Idées d'ateliers
  40. Parser du RSS et télécharger les émissions:
  41. * Source: https://github.com/dmerejkowsky/pypodget/
  42. * Concepts:
  43. * `setup.py`
  44. * scripts, entry points
  45. * Remplacer Matlab par Python + numpy + matplotlib
  46. * Effets audio
  47. * Jeux vidéos (pygame)
  48. * IOT : micro-controller, Rasberry Pi
  49. * Blender/GIMP
  50. * Stéganographie: cacher un texte dans une image
  51. * Patcher des binaires Windows pour le fun?