Make the code in tutorial more pythonic

#23 Merged at 47349fb
Repository
thesheep
Branch
default
Repository
marcusva
Branch
default
Author
  1. Radomir Dopieralski
Reviewers
Description

Make the code in tutorial more pythonic

  • Make the style follow PEP8 more closely,
  • fix the import names to be more consistent with the names in text,
  • remove the distracting and useless ImportError handling,
  • get rid of "import *",
  • get rid of unneeded parentheses,
  • replace the ugly backslash line continuations with parentheses,
  • simplify the checks for collection emptiness.

Comments (0)