Re: [Tutor] Extracting data from HTML files

2005-12-31 Thread kevin7kal
my 2 cents: I agree, BeutifulSoup is great for HTML parsing. It's a little weird and unintuitive at first, but once you get it, it's becomes quit an asset. >When you have time, do try going through a few examples with >BeautifulSoup. The web page there comes with some interesting examples, >and

Re: [Tutor] Multi-Dimensional Dictionary that contains a 12 element list.

2005-12-31 Thread Python
On Sat, 2005-12-31 at 09:33 -0500, Kent Johnson wrote: > Could be >self.results[key] = [0*24] [0]*24 Excellent points and advice, just noting a typo. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://

Re: [Tutor] Multi-Dimensional Dictionary that contains a 12 element list.

2005-12-31 Thread Kent Johnson
Paul Kraus wrote: > So now for all my reports all I have to write are little 5 or 6 line scripts > that take a text file split the fields and format them before basing them off > into my custom object. Very slick and this is my first python project. Its > cluttered and messy but for about 1 hour

Re: [Tutor] SyntaxError while defining tuple : Guidance requested

2005-12-31 Thread Alan Gauld
Hi John, > File "page114.py", line 12 >inventory = ("Sword","Armor","Shield","Healing > Potion") >^ > SyntaxError: invalid syntax The inventory= line should all be on a single line, Python doesn't like you breaking strings across lines (unless they are triple quoted). However, in

Re: [Tutor] SyntaxError while defining tuple : Guidance requested

2005-12-31 Thread John Joseph
--- Brian van den Broek <[EMAIL PROTECTED]> wrote: > Hi John, > > sometimes the syntax error indicator isn't quite > pointing to the > problem. In your case, the place it points was where > Python worked out > there was a problem, but the difficulty with your > code is several > lines up (I've

Re: [Tutor] SyntaxError while defining tuple : Guidance requested

2005-12-31 Thread Brian van den Broek
John Joseph said unto the world upon 31/12/05 02:09 AM: > Hi >I am trying out learning python , using the book > “Python Programming for the absolute beginner “ by > Michael Dawson >I get > File "page114.py", line 12 > inventory = ("Sword","Armor","Shield","Healing > Po

[Tutor] SyntaxError while defining tuple : Guidance requested

2005-12-31 Thread John Joseph
Hi I am trying out learning python , using the book “Python Programming for the absolute beginner “ by Michael Dawson I get File "page114.py", line 12 inventory = ("Sword","Armor","Shield","Healing Potion") ^ SyntaxError: invalid syntax when I run the program