
Jan. 10, 2016
1:08 p.m.
2016-01-10 5:24 GMT+01:00 Steven D'Aprano <steve@pearwood.info>:
Here's a sketch of the idea:
def demo(arg): return len(arg) (...)
For examples of guards and how they can be used, please see the PEP 510: https://www.python.org/dev/peps/pep-0510/#example Victor