Python Course

From ISLAB/CAISR
(Redirected from Internal/Python Course)

A separate page for discussions

Introduction

Books (those are quite a bit dated, I am sure there are newer ones out there, but I don't know them):

IDE:

Official:

Things to start with

Essential libraries:

  • numpy / scipy
  • matplotlib

2015.12.04

Things I have talked about today (non-obvious and important stuff in bold):

  • Hello, world!
  • list / dictionary / string / number / tuple / set
  • functions
    • default arguments, keyword arguments, variable argument lists
    • anonymous functions / lambda
  • exceptions
  • if / for / while / else / break / continue
    • else also works for loops
  • variables & assignment
    • pass-by-reference semantics
    • difference between = and ==
  • generators / iterators
  • list comprehension / generator comprehension / dictionary comprehension
  • string formatting
  • modules / import / import as / import from
  • classes
    • special methods: __init__ / __str__ / __eq__ / __call__ / ...
    • descriptors
  • advanced ideas
    • decorators
    • metaclasses

Modules in standard library you should definitely know about:

  • sqlite3
  • collections (especially defaultdict)
  • re
  • datetime
  • threading / multiprocessing / Queue
  • random
  • itertools / functools
  • os / sys / shutil / os.path
  • pickle
  • md5
  • subprocess
  • socket
  • urllib / httplib / email / cgi / urlparse / cookielib
  • pdb (especially pm)
  • win32api / win32gui

Additional

Advanced stuff:

Fun:

Library Presentations from two years ago