Dimitri Merejkowsky пре 5 година
родитељ
комит
763a63f4eb
1 измењених фајлова са 9 додато и 0 уклоњено
  1. +9
    -0
      notes.md

+ 9
- 0
notes.md Прегледај датотеку

@@ -2,6 +2,15 @@ Ce fichier contient diverses notes utiles à la préparation des futurs cours.

# Sujets à évoquer

## bits
* dict: setdefault
* listes: pop prend un argument
* slices takes a step too [::-1] -> reverse
* with: contextmanager, ContextDecorator

## big stuff

* exceptions: try, catch, finally
* short circuit in if: `if a is not None and a.b == 42`
* files: "wa", accès séquentiel (chunk = file.read(chunk_size))
* style: trailing white space, editor configuration,