blob: 8367f2066500bc0a8a389a71a9344b230b0bdaf4 [file] [log] [blame]
Wenzel Jakob38bd7112015-07-05 20:05:44 +02001key: key, value=value
2key: key2, value=value2
3key: key, value=value
4key: key2, value=value2
5Entry at positon 0: value
6list item 0: overwritten
7list item 1: value2
8list item 0: value
9list item 1: value2
1015
115
12example.Example2: No constructor defined!
13can't set attribute
14This exception was intentionally thrown.
15('test', True)
16(5, 'test', True)
17Help on class Example2 in module example
18
19class EExxaammppllee22(builtins.object)
20 | Methods defined here:
21 |
22 | ____iinniitt____(self, /, *args, **kwargs)
23 | Initialize self. See help(type(self)) for accurate signature.
24 |
25 | ____nneeww____ = <built-in method __new__ of example.Example2_meta object>
26 | ggeett__ddiicctt(...) from builtins.PyCapsule
27 | Signature : get_dict(Example2) -> dict
28 |
29 | Return a Python dictionary
30 |
31 | ggeett__ddiicctt__22(...) from builtins.PyCapsule
32 | Signature : get_dict_2(Example2) -> dict<str, str>
33 |
34 | Return a C++ dictionary
35 |
36 | ggeett__lliisstt(...) from builtins.PyCapsule
37 | Signature : get_list(Example2) -> list
38 |
39 | Return a Python list
40 |
41 | ggeett__lliisstt__22(...) from builtins.PyCapsule
42 | Signature : get_list_2(Example2) -> list<str>
43 |
44 | Return a C++ list
45 |
46 | nneeww__iinnssttaannccee(...) from builtins.PyCapsule
47 | Signature : new_instance() -> Example2
48 |
49 | Return an instance
50 |
51 | ppaaiirr__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
52 | Signature : pair_passthrough(Example2, (bool, str)) -> (str, bool)
53 |
54 | Return a pair in reversed order
55 |
56 | pprriinntt__ddiicctt(...) from builtins.PyCapsule
57 | Signature : print_dict(Example2, dict) -> None
58 |
59 | Print entries of a Python dictionary
60 |
61 | pprriinntt__ddiicctt__22(...) from builtins.PyCapsule
62 | Signature : print_dict_2(Example2, dict<str, str>) -> None
63 |
64 | Print entries of a C++ dictionary
65 |
66 | pprriinntt__lliisstt(...) from builtins.PyCapsule
67 | Signature : print_list(Example2, list) -> None
68 |
69 | Print entries of a Python list
70 |
71 | pprriinntt__lliisstt__22(...) from builtins.PyCapsule
72 | Signature : print_list_2(Example2, list<str>) -> None
73 |
74 | Print entries of a C++ list
75 |
76 | tthhrrooww__eexxcceeppttiioonn(...) from builtins.PyCapsule
77 | Signature : throw_exception(Example2) -> None
78 |
79 | Throw an exception
80 |
81 | ttuuppllee__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
82 | Signature : tuple_passthrough(Example2, (bool, str, int32_t)) -> (int32_t, str, bool)
83 |
84 | Return a triple in reversed order
85 |
86 | ----------------------------------------------------------------------
87 | Data and other attributes defined here:
88 |
89 | ____iinnssttaannccee__ssiizzee____ = 1
90
91Destructing Example2