changeset 167:be309ee0ba93

created
author Radomir Dopieralski
date Sat, 15 Sep 2012 20:01:17 +0200
parents 848de95d0626
children 522c982d4f49
files docs/Why%20is%20it%20useful%3F
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/Why%20is%20it%20useful%3F	Sat Sep 15 20:01:17 2012 +0200
@@ -0,0 +1,7 @@
+//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, for example:
+
+{{{#!py
+def f(arg): pass    # a function that does nothing (yet)
+
+class C: pass       # a class with no methods (yet)
+}}}
\ No newline at end of file