CKTIS / Python
Keyword pass
Satisfy Python’s requirement for a nonempty suite without performing an operation.
Version: Python 3.14; repository image, production runtime not attested
Syntax
if condition:
passSatisfy Python’s requirement for a nonempty suite without performing an operation.
Execution continues with the next statement in the same suite, so pass inside a loop does not skip the iteration.
A function containing only pass reaches its end and returns None implicitly.
Examples
def idle():
pass
seen = []
for n in range(2):
if n == 0:
pass
seen.append(n)
print(seen, idle())
Result
[0, 1] None
A function containing only pass reaches its end and returns None implicitly.