[Tutor] How to (a) write to files, (b) use try/except (clarification)

2008-02-09 Thread Rob Stevenson
by amazon ID in my message I meant my web services license number. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to... (a) write to files, (b) use try/except

2008-02-09 Thread Rob Stevenson
Hello, Sorry to be dense, but I'm having trouble writing to a file... I have a list of book numbers - ISBNs in a file, one per line... (see list at bottom of this message) my code below... import amazon amazon.setLicense(' -- my amazon id is in here when I run - ') isbn_list = c:\\ISBN.txt

Re: [Tutor] How to... (a) write to files, (b) use try/except

2008-02-09 Thread Kent Johnson
Rob Stevenson wrote: Title = book.ProductName printstring = isbn + \t + book.ProductName + \t + book.Authors.Author + \tUsed from...\t + book.UsedPrice + \tNew price\t + book.OurPrice print printstring print printstring fle