Re: Accessing attributes?

2007-06-12 Thread BartlebyScrivener
On Jun 12, 5:04 am, Jeff Rollin <[EMAIL PROTECTED]> wrote: > Where am I going wrong? > > Many TIA for any help. Look at your code, then look at swaroop's http://tinyurl.com/2v5zze Line up all your defs at the same indent and they should work. -- http://mail.python.org/mailman/listinfo/python-

Re: Accessing attributes?

2007-06-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Jeff Rollin wrote: > (Initializing Calamity Jane) > Traceback (most recent call last): >   File "/home/jef/bin/objvar.py", line 49, in >     Person.how_many() > AttributeError: class Person has no attribute 'how_many' > > Where am I going wrong? Looking at the indention

Re: Accessing attributes

2007-06-12 Thread Jeff Rollin
In the last episode, on Tuesday 26 Sivan 5767 11:09, Marc Christiansen wrote: > > The indentation of __del__, say_hi and how_many is wrong. You define > them inside __init__. Move them to the same indentation level as > __init__ and all should work. Thanks very much. Jeff -- http://mail.pytho

Re: Accessing attributes

2007-06-12 Thread Marc Christiansen
Jeff Rollin <[EMAIL PROTECTED]> wrote: > I'm working with the Python Tutorial "Byte of Python" at swaroopch.info. > > I have created the attached file, but when I execute: > > % objvar.py > > I get the error message: > > (Initializing Calamity Jane) > Traceback (most recent call last): > File

Re: accessing attributes when inheriting?

2006-03-16 Thread James Stroud
Peter J. Bismuti wrote: > > How do you access attributes of a class when inheriting from it? Can't you > just say: > > self.attribute? > > Help?! > ... > #!/usr/bin/python > > from Dialog impo