OILS / opy / testdata / tuple_args.py View on Github | oilshell.org

13 lines, 5 significant
1#!/usr/bin/env python2
2from __future__ import print_function
3"""
4tuple_args.py: Testing out this little-known feature of Python, which compiler2
5supports.
6"""
7
8# Python 3 no longer supports this!
9def f(a, (b, c), (d, e, f)):
10 print(a, b, c, d, e, f)
11
12if __name__ == '__main__':
13 f(1, (2, 3), (4, 5, 6))