[Tutor] Are Empty "Placeholder" Functions possible?
Alan G
alan.gauld at freenet.co.uk
Thu May 26 23:07:21 CEST 2005
> Is there a way to create an empty function definition with no lines
of code
> in it? In my coding style I will often do this ( in other
languages ) for
> RAD just to remind myself that I will need to implement the function
later.
>
Use pass
def f(): pass
also works for classes:
class MyClass: pass
I use that a lot.
Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list