[Tutor] Functions output

2009-04-17 Thread mbikinyi brat
Dear all, Here are two functions printme and change quite spaced apart. When executed the output in bold are joined. What can I do so that the results are separate in two blocks?   #Function definition is here def printme(str):     "This prints a passed string into this function"     print str  

Re: [Tutor] importance of Docstring

2009-04-17 Thread spir
Le Thu, 16 Apr 2009 12:02:21 +0200, "A.T.Hofkamp" s'exprima ainsi: > Now what does this function do? > This is a 'what' question, namely, from a design point of view, if I call > this function, what does it do, and what is its result-value? > What I miss is a good place for "why?". Which, when

Re: [Tutor] Functions output

2009-04-17 Thread Kent Johnson
On Fri, Apr 17, 2009 at 4:42 AM, mbikinyi brat wrote: > Dear all, > Here are two functions printme and change quite spaced apart. When executed > the output in bold are joined. What can I do so that the results are > separate in two blocks? The format of the output depends only on the contents of

Re: [Tutor] Functions output

2009-04-17 Thread Dave Angel
mbikinyi brat wrote: Dear all, Here are two functions printme and change quite spaced apart. When executed the output in bold are joined. What can I do so that the results are separate in two blocks? ? #Function definition is here def printme(str): ??? "This prints a passed string into this fun

[Tutor] Sending a disconnect after openssl s_client command?

2009-04-17 Thread Kayvan Sarikhani
Tutors, I'm working on a script to verify whether a particular website supports SSLv2 via the following: --- BEGIN --- #!/usr/bin/python import os, re checkssl_out = open('checkssl.txt','w') website = 'somewebsitename' sslv2 = 'Protocol : SSLv2' print 'Checking:', website checksslv2 = os.p

Re: [Tutor] importance of Docstring

2009-04-17 Thread Alan Gauld
"spir" wrote Now what does this function do? This is a 'what' question, namely, from a design point of view, if I call this function, what does it do, and what is its result-value? What I miss is a good place for "why?". Which, when needed, is different from "what?" and "how?". Why tells

Re: [Tutor] Functions output

2009-04-17 Thread Alan Gauld
"mbikinyi brat" wrote Here are two functions printme and change quite spaced apart. The spacing of the functions inside the source file has nothing to do with the output. Python reads the input file, ignores any spacing and executes any lines it recognises as code. When executed the o

[Tutor] Python and Semantic web

2009-04-17 Thread mbikinyi brat
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Protege and python

2009-04-17 Thread mbikinyi brat
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor