Help needed in OOP-Python

Toufeeq Hussain toufeeqh at gmail.com
Wed Oct 5 02:23:39 EDT 2005


Hi Fredrik,

On 10/5/05, Fredrik Lundh <fredrik at pythonware.com> wrote:
>
> Toufeeq Hussain wrote:
>
> > I have 3 modules which have class declarations in them and which
> implement
> > multiple inheritance.
>
> > Traceback (most recent call last):
> > File "E:\PyPBM\PyPBM\test_case.py", line 7, in ?
> >TH = constraint.Option1_Rule1()
>
> there's no line that says "TH = constraint.Option1_Rule1()" in the
> code you're posted. looks like you didn't really post the code you
> tested...
>

my bad. :(

It's there under "script" but in a different form.

Script
-----
import Module3

Test_Case = Module3.Option1_Rule1()
Test_Case.Option1_constraint()


Test_Case = "Module3.Option1_Rule1()" corresponds to "TH =
constraint.Option1_Rule1()"

My coding is really really bad,that's why I changed the names to more human
readable form(Module1,2.. etc).

Thanks for pointing it out,
Toufeeq
--
Get Firefox:http://www.mozilla.org/products/firefox/
The fastest, safest and best Browser !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051005/dbeb2e26/attachment.html>


More information about the Python-list mailing list