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

Packages slide.

Files:
1 modified

Legend:

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

    r727 r728  
    159159    ), 
    160160 
     161    Slide("Packages and Modules", 
     162        Bullet("Creating a package:", PRE(""" 
     163            textutil 
     164            |-- __init__.py 
     165            `-- sort.py 
     166            """)), 
     167        Bullet("__init__.py:", PYCODE(r''' 
     168            """This is the textutil package.""" 
     169 
     170            from .sort import Sort 
     171            ''')), 
     172        Bullet("Packages and modules are objects too!"), 
     173    ), 
     174 
     175    Slide("Classes and Basic OO", 
     176        Bullet("..."), 
     177    ), 
     178 
    161179) 
    162180