Andrew Breza

18%
Flag icon
Now let’s see how a DemoDataClass instance looks: >>> dc = DemoDataClass(9) >>> dc.a 9 >>> dc.b 1.1 >>> dc.c 'spam' Again, a and b are instance attributes, and c is a class attribute we get via the instance.
Andrew Breza
?
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview