Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Questo repository è archiviato. Puoi vedere i file e clonarli, ma non puoi effettuare richieste di pushj o aprire problemi/richieste di pull.

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