Re: Base class and Derived class question

2012-11-06 Thread alex23
On Nov 7, 1:08 am, cyberira...@gmail.com wrote: > Just got answer, I didn't call a class it's self.  Correct code is: > class derivedClass(baseClassMod.baseClass): >     def .. Incidentally, this is why it's recommended to give modules lowercase names - baseclass - and classes camelcased ones

Re: Base class and Derived class question

2012-11-06 Thread Hans Mulder
On 6/11/12 14:47:03, cyberira...@gmail.com wrote: > Hey guys, > I'm trying to understand how is working base class and derived class. > So, I have to files baseClass.py and derivedClass.py. > baseClass.py : > [CODE]class baseClass(): > def bFunction(self): > print "We are in a base cl

Re: Base class and Derived class question

2012-11-06 Thread cyberirakli
On Tuesday, November 6, 2012 4:35:47 PM UTC+1, Ian wrote: > On Tue, Nov 6, 2012 at 8:03 AM, > > > I've used angle brackets just for posting here,becauze this forum doesn't > > support [code][/code] > > > > This is a Usenet group, not a web forum. > > > > > Just got answer, I didn't call a

Re: Base class and Derived class question

2012-11-06 Thread Ian Kelly
On Tue, Nov 6, 2012 at 8:03 AM, wrote: > I've used angle brackets just for posting here,becauze this forum doesn't > support [code][/code] This is a Usenet group, not a web forum. > Just got answer, I didn't call a class it's self. Correct code is: > class derivedClass(baseClassMod.baseClass)

Re: Base class and Derived class question

2012-11-06 Thread cyberirakli
Just got answer, I didn't call a class it's self. Correct code is: class derivedClass(baseClassMod.baseClass): def .. -- http://mail.python.org/mailman/listinfo/python-list

Re: Base class and Derived class question

2012-11-06 Thread cyberirakli
> in what Python version ? Python 2.7.3 > How did all those angle brackets get into the file? Are you confusing > > an interactive interpreter session with running source files? I've used angle brackets just for posting here,becauze this forum doesn't support [code][/code] I have a file c

Re: Base class and Derived class question

2012-11-06 Thread Dave Angel
On 11/06/2012 08:50 AM, cyberira...@gmail.com wrote: > Hey guys, > I'm trying to understand how is working base class and derived class. in what Python version ? > So, I have to files baseClass.py and derivedClass.py. > baseClass.py : class baseClass(): How did all those angle brackets get