example2.ref 2.95 KB
Newer Older
Wenzel Jakob's avatar
Wenzel Jakob committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
key: key, value=value
key: key2, value=value2
key: key, value=value
key: key2, value=value2
Entry at positon 0: value
list item 0: overwritten
list item 1: value2
list item 0: value
list item 1: value2
15
5
example.Example2: No constructor defined!
can't set attribute
This exception was intentionally thrown.
('test', True)
(5, 'test', True)
Help on class Example2 in module example

class EExxaammppllee22(builtins.object)
 |  Methods defined here:
 |  
 |  ____iinniitt____(self, /, *args, **kwargs)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |  
 |  ____nneeww____ = <built-in method __new__ of example.Example2_meta object>
 |  ggeett__ddiicctt(...) from builtins.PyCapsule
 |      Signature : get_dict(Example2) -> dict
 |      
 |      Return a Python dictionary
 |  
 |  ggeett__ddiicctt__22(...) from builtins.PyCapsule
 |      Signature : get_dict_2(Example2) -> dict<str, str>
 |      
 |      Return a C++ dictionary
 |  
 |  ggeett__lliisstt(...) from builtins.PyCapsule
 |      Signature : get_list(Example2) -> list
 |      
 |      Return a Python list
 |  
 |  ggeett__lliisstt__22(...) from builtins.PyCapsule
 |      Signature : get_list_2(Example2) -> list<str>
 |      
 |      Return a C++ list
 |  
 |  nneeww__iinnssttaannccee(...) from builtins.PyCapsule
 |      Signature : new_instance() -> Example2
 |      
 |      Return an instance
 |  
 |  ppaaiirr__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
 |      Signature : pair_passthrough(Example2, (bool, str)) -> (str, bool)
 |      
 |      Return a pair in reversed order
 |  
 |  pprriinntt__ddiicctt(...) from builtins.PyCapsule
 |      Signature : print_dict(Example2, dict) -> None
 |      
 |      Print entries of a Python dictionary
 |  
 |  pprriinntt__ddiicctt__22(...) from builtins.PyCapsule
 |      Signature : print_dict_2(Example2, dict<str, str>) -> None
 |      
 |      Print entries of a C++ dictionary
 |  
 |  pprriinntt__lliisstt(...) from builtins.PyCapsule
 |      Signature : print_list(Example2, list) -> None
 |      
 |      Print entries of a Python list
 |  
 |  pprriinntt__lliisstt__22(...) from builtins.PyCapsule
 |      Signature : print_list_2(Example2, list<str>) -> None
 |      
 |      Print entries of a C++ list
 |  
 |  tthhrrooww__eexxcceeppttiioonn(...) from builtins.PyCapsule
 |      Signature : throw_exception(Example2) -> None
 |      
 |      Throw an exception
 |  
 |  ttuuppllee__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
 |      Signature : tuple_passthrough(Example2, (bool, str, int32_t)) -> (int32_t, str, bool)
 |      
 |      Return a triple in reversed order
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  ____iinnssttaannccee__ssiizzee____ = 1

Destructing Example2