Pull requests

#23 Merged
Repository
thesheep thesheep
Branch
default
Repository
marcusva marcusva
Branch
default

Make the code in tutorial more pythonic

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)