Show
Ignore:
Timestamp:
03/05/10 22:47:39 (2 years ago)
Author:
hodgestar
Message:

OO slide.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hodgestar/Talks/PythonForProgrammers/slides/py4prog.py

    r728 r729  
    174174 
    175175    Slide("Classes and Basic OO", 
    176         Bullet("..."), 
     176        Bullet("sort.py", PYCODE(r''' 
     177            class Sort(object): 
     178                """Sort tool re-implementation. 
     179                """ 
     180 
     181                OPTION_FMT = "urf" 
     182 
     183                def __init__(self, options): 
     184                    self._options = options 
     185                    self._lines = [] 
     186 
     187                ... 
     188            ''')), 
     189        Bullet(URL("Detour: getopt.getopt", "file:///usr/share/doc/python-doc/html/library/getopt.html#getopt.getopt")), 
     190    ), 
     191 
     192    Slide("Dictionaries and Sets", 
     193        Bullet("Dictionaries:", 
     194        ), 
     195        Bullet("Sets:", 
     196        ), 
    177197    ), 
    178198