Re: Inheritance error: class Foo has no attribute "bar"

2006-07-12 Thread [EMAIL PROTECTED]
I checked my code today and your suggestion did fix the problem. I used your second idea of having the default class attributes with individual instance attributes. I ran into one problem where I kept getting the error " File "\\user1\jacksocl\Python_stuff\CMRPG\CharCreation.py", line 262, in __

Re: Inheritance error: class Foo has no attribute "bar"

2006-07-11 Thread crystalattice
On Sun, 09 Jul 2006 03:51:56 -1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 09 Jul 2006 04:24:01 +, crystalattice wrote: > >> I've finally figured out the basics of OOP; I've created a basic >> character >> creation class for my game and it works reasonably well. Now that I'm

Re: Inheritance error: class Foo has no attribute "bar"

2006-07-09 Thread Steven D'Aprano
On Sun, 09 Jul 2006 04:24:01 +, crystalattice wrote: > I've finally figured out the basics of OOP; I've created a basic character > creation class for my game and it works reasonably well. Now that I'm > trying to build a subclass that has methods to determine the rank of a > character b

Re: Inheritance error: class Foo has no attribute "bar"

2006-07-09 Thread Alan Franzoni
Il Sun, 09 Jul 2006 04:24:01 GMT, crystalattice ha scritto: > I can't see why it's saying this because Character.__init__(self) not only > has self.attrib_dict = {} but it also calls the setAttribute method > explicitly for each attribute name. If I do a print out of the dictionary > just fo

Re: Inheritance error: class Foo has no attribute "bar"

2006-07-08 Thread Simon Forman
crystalattice wrote: > I've finally figured out the basics of OOP; I've created a basic character > creation class for my game and it works reasonably well. Now that I'm > trying to build a subclass that has methods to determine the rank of a > character but I keep getting errors. > > I want to "re