Code

Changes between Version 39 and Version 40 of RemovingTheMagic


Ignore:
Timestamp:
01/13/06 22:04:29 (8 years ago)
Author:
WorldMaker
Comment:

Fixed save() examples (removed redundant self arguments)

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v39 v40  
    170170    def save(self): 
    171171        self.do_something() 
    172         super(Person, self).save(self) # Call the "real" save() method. 
     172        super(Person, self).save() # Call the "real" save() method. 
    173173        self.do_something_else() 
    174174}}} 
     
    184184    def save(self): 
    185185        if datetime.date.today() > datetime.date(2005, 1, 1): 
    186             super(Person, self).save(self) # Call the "real" save() method. 
     186            super(Person, self).save() # Call the "real" save() method. 
    187187        else: 
    188188            # Don't save.