Changeset 338

Show
Ignore:
Timestamp:
06/21/08 01:14:27 (4 years ago)
Author:
simon
Message:

Example classes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hodgestar/Talks/PythonObjects/util.py

    r336 r338  
    77 
    88os.chdir('/home/simon/LocalProjects/PythonSpint/trunk') 
     9 
     10class Old: 
     11    pass 
     12 
     13class New(object): 
     14    pass 
     15 
     16class Foobar(object): 
     17    def __str__(self): 
     18        return "foobar" 
     19    def __unicode__(self): 
     20        return unicode("foobar") 
    921 
    1022def find_big_dict(x): 
     
    3345    print ("-- Answers --") 
    3446    print (answer) 
    35  
    3647 
    3748# From: