Re: [Tutor] Documentation

2013-01-06 Thread Alexander Mark
On Jan 6, 2013, at 22:48, Ed Owens  wrote:

> I have been working my way through Chun's book Core Python Applications.
> 
> In chapter 9 he has a web crawler program that essentially copies all the 
> files from a web site by finding and downloading the links on that domain.
> 
> One of the classes has a procedure definition, and I'm having trouble finding 
> documentation for the functions.  The code is:
> 
>  def parse_links(self):
> 'Parse out the links found in downloaded HTML file'
> f = open(self.file, 'r')
> data = f.read()
> f.close()
> parser = HTMLParser(formatter.AbstractFormatter(
> formatter.DumbWriter(cStringIO.StringIO(
> parser.feed(data)
> parser.close()
> return parser.anchorlist
> 
> HTMLParser is from htmllib.
> 
> I'm having trouble finding clear documentation for what the functions that 
> are on the 'parser =' line do and return.  The three modules (htmllib, 
> formatter, & cStringIO are all imported, but I can't seem to find much info 
> on how they work and what they do.  What this actually does and what it 
> produces is completely obscure to me. 
> 
> Any help would be appreciated. Any links to clear documentation and examples?
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

Hi Ed, maybe this helps:
http://docs.python.org/2/library/htmllib.html
A___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How to make a python script run on startup

2013-04-09 Thread Alexander Mark
There is a startup folder, usually on the start menu, you can add the script 
to. 

--ame

On Apr 9, 2013, at 4:20, daedae11  wrote:

> On Windows, how to make a python script run on startup?
> 
> 
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor