example_0070.py
См. документацию.
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 
4 import example_0070
5 
6 print example_0070.function_with_overloaded_retvals(0)
7 
8 print example_0070.function_with_overloaded_retvals(1)
9 
10 print example_0070.function_with_overloaded_retvals(2)
11 
12 print example_0070.function_with_overloaded_retvals(3)
13 
14 print example_0070.function_with_overloaded_retvals(4)
15 
16 try:
17  example_0070.function_with_overloaded_retvals(5)
18 except ValueError as ex:
19  print '***', ex