newbie question on modules

Janos Blazi jblazi at netsurf.de
Fri Jan 28 15:49:58 EST 2000


Thx.
the problem was that I was not familiar even with the most simple facts.

What I wanted was "from XXX import *" and it seems I was not even able to
ask the right question.
Thx for the answer anyway.

Janos Blazi


Max M. Stalnaker <stalnaker at acm.org> schrieb in im Newsbeitrag:
Ww8k4.487$4f5.132763 at tw12.nn.bcandid.com...
> Would it be adequate for module b to inherit module a?
> Then in module b:
>
> class b(a):
>
> It seems possible that this issue is flowing not from python newness, but
> from OO newness.  Taking a shot at rethinking the structure to account for
> OO possibilities might be useful.  I had been going through that process
on
> a program that started out modular and is ending up OO and the program is
a
> structured a bit different than when it started.
>
> "Janos Blazi" <jblazi at netsurf.de> wrote in message
> news:38872a70_4 at goliath.newsfeeds.com...
> > I have a module a in which a function m_add is defined. Now I want (as
the
> > last statement of module a) load and execute a module b. Now it seems
that
> b
> > does not know the function m_add. How can I change that?
> >
> > I'd like to access everything defined in a in the module b that is the
> > (variable) second part of a.
> >
> > What can I do?
> >
> > Janos Blazi
> >
> >
> >
> >
> >   -----------== Posted via Newsfeeds.Com, Uncensored Usenet News
> ==----------
> >    http://www.newsfeeds.com       The Largest Usenet Servers in the
World!
> > ------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers
> ==-----
>
>




  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----



More information about the Python-list mailing list