blob: 9c295d29d8f7f2c08e6e25684fb766623372a91a [file] [log] [blame]
Wenzel Jakob38bd7112015-07-05 20:05:44 +02001#!/usr/bin/env python3
2import sys
3sys.path.append('.')
4
5from example import MyObject
6from example import make_object_1
7from example import make_object_2
8from example import make_myobject_4
9from example import make_myobject_5
10from example import print_object_1
11from example import print_object_2
12from example import print_object_3
13from example import print_object_4
14from example import print_myobject_1
15from example import print_myobject_2
16from example import print_myobject_3
17from example import print_myobject_4
18
19for o in [make_object_1(), make_object_2(), MyObject(3)]:
20 print("Reference count = %i" % o.getRefCount())
21 print_object_1(o)
22 print_object_2(o)
23 print_object_3(o)
24 print_object_4(o)
25
26for o in [make_myobject_4(), make_myobject_5(), MyObject(6), 7]:
27 print(o)
28 if not isinstance(o, int):
29 print_object_1(o)
30 print_object_2(o)
31 print_object_3(o)
32 print_object_4(o)
33 print_myobject_1(o)
34 print_myobject_2(o)
35 print_myobject_3(o)
36 print_myobject_4(o)