On 23 March 2011 13:35, Aristotle Pagaltzis <pagalt...@gmx.de> wrote:
* Matthew King <matthew.k...@monnsta.net> [2011-03-23 11:35]:
... yes, the rest of the function looks like bollocks too.
Comment the whole thing out. Put in a print line because you
probably can't have empty functions in python.

The magic incantation you want is `pass`:

   pass is a null operation -- when it is executed, nothing
   happens. It is useful as a placeholder when a statement is
   required syntactically, but no code needs to be executed
          --- http://docs.python.org/release/2.5.2/ref/pass.html


Did i understand this right? Python doesn't allow empty sub
definitions? Is this hatefulness a consequence of the other hateful
bits in python?

Yves


--
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to