Re: class attributes & data attributes

2007-06-20 Thread Bruno Desthuilliers
james_027 a écrit : > hi everyone, > > I am now in chapter 5 of Dive Into Python and I have some question > about it. From what I understand in the book is you define class > attributes & data attributes like this in python s/data/instance/ > class Book: > >

Re: class attributes & data attributes

2007-06-20 Thread Diez B. Roggisch
james_027 wrote: > hi everyone, > > I am now in chapter 5 of Dive Into Python and I have some question > about it. From what I understand in the book is you define class > attributes & data attributes like this in python > > class Book: > > total # is

class attributes & data attributes

2007-06-20 Thread james_027
hi everyone, I am now in chapter 5 of Dive Into Python and I have some question about it. From what I understand in the book is you define class attributes & data attributes like this in python class Book: total # is a class attribute def __init__(self): self.title # is a