Strip HTML tags?
Fazer
faizan at jaredweb.com
Mon Dec 15 22:49:30 EST 2003
BW Glitch <bwglitch at hotpop.com> wrote in message news:<brl32j$4hrs5$1 at ID-203388.news.uni-berlin.de>...
> Fazer wrote:
> > BW Glitch <bwglitch at hotpop.com> wrote in message news:<brj93a$3usmi$1 at ID-203388.news.uni-berlin.de>...
> >
> >>Fazer wrote:
> >>>Thanks! The recipe works out fine! The problem is that I saved the
> >>>class in a file and I want it to be included in my other script. How
> >>>can that be done? My other script is in the same directory as the
> >>>class and doing import <name of class> doesn't work.
> >>
> >>You should import <filename minus .py*>
> >
> > Thanks for the responce! I put the class and the final function in a
> > tags.py file. I make another script and do : "import tags"
> > It works, but when I try to make a new class instance, it can't seem
> > to find it.
>
> There are two ways to import modules, "import module" and "from module
> import *". The latter is seldom recommended.
>
> By doing a "import module", anything inside the module must be called
> like this:
>
> ### begin example
> import sys
>
> sys.exit(0)
> ### end example
>
> When you do a import tags, everything inside tags must be called
> tags.CLASS .
>
> HTH,
>
> --
> Glitch
>
Ahh...thanks a lot! I get it know.
More information about the Python-list
mailing list