[Tutor] Question re: hangman.py

2009-11-13 Thread biboy mendz
http://inventwithpython.com chapter 8: hangman.py expression is: print(letter, end=' ') it explained: end keyword argument in print() call makes the print() function put a space character at the end of the string instead of a newline. however when run it gives error: SyntaxError: invalid

Re: [Tutor] Question re: hangman.py

2009-11-13 Thread Hugo Arts
On Fri, Nov 13, 2009 at 2:17 PM, biboy mendz bibsmen...@gmail.com wrote: http://inventwithpython.com chapter 8: hangman.py expression is: print(letter, end=' ') it explained: end keyword argument in print() call makes the print() function put a space character at the end of the string

Re: [Tutor] How to call a method with a print statement?

2009-11-13 Thread Modulok
List, __repr__() is exactly what I was looking for :) You guys rock! Thank you. -Modulok- On 11/12/09, Dave Angel da...@ieee.org wrote: Kent Johnson wrote: On Thu, Nov 12, 2009 at 6:35 AM, Luke Paireepinart rabidpoob...@gmail.com wrote: On Thu, Nov 12, 2009 at 5:29 AM, Jeff R. Allen

Re: [Tutor] Question re: hangman.py

2009-11-13 Thread Alan Gauld
biboy mendz bibsmen...@gmail.com wrote chapter 8: hangman.py expression is: print(letter, end=' ') it explained: end keyword argument in print() call makes the print() function put a space character at the end of the string instead of a newline. however when run it gives error:

Re: [Tutor] Question re: hangman.py

2009-11-13 Thread Alan Gauld
Hugo Arts hugo.yo...@gmail.com wrote print letter, ' ', You don't need the space, Python automatically inserts a space instead of the newline when you use the comma. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/l2p/

[Tutor] Iterable Understanding

2009-11-13 Thread Stephen Nelson-Smith
I think I'm having a major understanding failure. So having discovered that my Unix sort breaks on the last day of the month, I've gone ahead and implemented a per log search, using heapq. I've tested it with various data, and it produces a sorted logfile, per log. So in essence this: logs = [

Re: [Tutor] COM server: cannot assign property

2009-11-13 Thread Emile van Sebille
On 11/12/2009 4:41 PM Yashwin Kanchan said... Hi Guys I am trying to create a simple test COM server , but am have trouble assigning any property value to it through excel VBA. Please point out where i am going wrong. #COM server class test(object): _reg_clsid_ =

Re: [Tutor] Question re: hangman.py

2009-11-13 Thread biboy mendz
thanks a lot for the clarification Alan and all. -- Regards, bibs M. Host/Kernel/OS cc02695 running Linux 2.6.31-5.slh.4-sidux-686 [sidux 2009-02 Αιθήρ - kde-full - (200907141427) ] www.sidux.com Alan Gauld wrote: biboy mendz bibsmen...@gmail.com wrote chapter 8: hangman.py

Re: [Tutor] Iterable Understanding

2009-11-13 Thread spir
Le Fri, 13 Nov 2009 17:58:30 +, Stephen Nelson-Smith sanel...@gmail.com s'exprima ainsi: I think I'm having a major understanding failure. So having discovered that my Unix sort breaks on the last day of the month, I've gone ahead and implemented a per log search, using heapq. I've

[Tutor] parsing XML into a python dictionary

2009-11-13 Thread Christopher Spears
I've been working on a way to parse an XML document and convert it into a python dictionary. I want to maintain the hierarchy of the XML. Here is the sample XML I have been working on: collection comic title=Sandman number='62' writerNeil Gaiman/writer penciller