Class Encapsulation Errors in Python 2.3.3

Tim Henderson tim.tadh at gmail.com
Sun Nov 21 23:05:20 EST 2004


actually i bunch of the code that was posted above has been changed including this.

code:
--------------------------------------------------------------
class Artist:

     
     def __init__(self, name):
         self.songs = []
         self.albums = []
         self.unknownAlbum = Album('unknown')
         self.albums.append(self.unknownAlbum)
         self.name = name
         self.unknownAlbum.setArtist(self.name)
--------------------------------------------------------------

cheers

tim



More information about the Python-list mailing list