1
- 15
2
- 5
3
- Example2: No constructor defined!
4
- can't set attribute
5
- key: key2, value=value2
6
1
key: key, value=value
2
+ key: key2, value=value2
7
3
key: key, value=value
8
4
key: key2, value=value2
9
5
key: key3
10
- key: key2
11
6
key: key1
7
+ key: key2
12
8
key: key1
13
9
key: key2
14
10
key: key3
@@ -17,105 +13,107 @@ list item 0: overwritten
17
13
list item 1: value2
18
14
list item 0: value
19
15
list item 1: value2
16
+ 15
17
+ 5
18
+ example.Example2: No constructor defined!
19
+ can't set attribute
20
20
This exception was intentionally thrown.
21
- (u 'test', True)
22
- (5L, u 'test', True)
21
+ ('test', True)
22
+ (5, 'test', True)
23
23
Help on class Example2 in module example
24
24
25
- class EExxaammppllee22(__builtin__ .object)
25
+ class EExxaammppllee22(builtins .object)
26
26
| Example 2 documentation
27
27
|
28
28
| Methods defined here:
29
29
|
30
- | ____iinniitt____(... )
31
- | x.__init__(...) initializes x; see help(type(x )) for signature
30
+ | ____iinniitt____(self, /, *args, **kwargs )
31
+ | Initialize self. See help(type(self )) for accurate signature.
32
32
|
33
- | ggeett__ddiicctt(...)
34
- | Signature : (Example2) -> dict
33
+ | ____nneeww____ = <built-in method __new__ of example.Example2_meta object>
34
+ | ggeett__ddiicctt(...) from builtins.PyCapsule
35
+ | Signature : (example.Example2) -> dict
35
36
|
36
37
| Return a Python dictionary
37
38
|
38
- | ggeett__ddiicctt__22(...)
39
- | Signature : (Example2) -> dict<str, str>
39
+ | ggeett__ddiicctt__22(...) from builtins.PyCapsule
40
+ | Signature : (example. Example2) -> dict<str, str>
40
41
|
41
42
| Return a C++ dictionary
42
43
|
43
- | ggeett__lliisstt(...)
44
- | Signature : (Example2) -> list
44
+ | ggeett__lliisstt(...) from builtins.PyCapsule
45
+ | Signature : (example. Example2) -> list
45
46
|
46
47
| Return a Python list
47
48
|
48
- | ggeett__lliisstt__22(...)
49
- | Signature : (Example2) -> list<str>
49
+ | ggeett__lliisstt__22(...) from builtins.PyCapsule
50
+ | Signature : (example. Example2) -> list<str>
50
51
|
51
52
| Return a C++ list
52
53
|
53
- | ggeett__sseett(...)
54
- | Signature : (Example2) -> set
54
+ | ggeett__sseett(...) from builtins.PyCapsule
55
+ | Signature : (example. Example2) -> set
55
56
|
56
57
| Return a Python set
57
58
|
58
- | ggeett__sseett22(...)
59
- | Signature : (Example2) -> set
59
+ | ggeett__sseett22(...) from builtins.PyCapsule
60
+ | Signature : (example. Example2) -> set
60
61
|
61
62
| Return a C++ set
62
63
|
63
- | ppaaiirr__ppaasssstthhrroouugghh(...)
64
- | Signature : (Example2, (bool, str)) -> (str, bool)
64
+ | nneeww__iinnssttaannccee(...) from builtins.PyCapsule
65
+ | Signature : () -> example.Example2
66
+ |
67
+ | Return an instance
68
+ |
69
+ | ppaaiirr__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
70
+ | Signature : (example.Example2, (bool, str)) -> (str, bool)
65
71
|
66
72
| Return a pair in reversed order
67
73
|
68
- | pprriinntt__ddiicctt(...)
69
- | Signature : (Example2, dict) -> None
74
+ | pprriinntt__ddiicctt(...) from builtins.PyCapsule
75
+ | Signature : (example. Example2, dict) -> None
70
76
|
71
77
| Print entries of a Python dictionary
72
78
|
73
- | pprriinntt__ddiicctt__22(...)
74
- | Signature : (Example2, dict<str, str>) -> None
79
+ | pprriinntt__ddiicctt__22(...) from builtins.PyCapsule
80
+ | Signature : (example. Example2, dict<str, str>) -> None
75
81
|
76
82
| Print entries of a C++ dictionary
77
83
|
78
- | pprriinntt__lliisstt(...)
79
- | Signature : (Example2, list) -> None
84
+ | pprriinntt__lliisstt(...) from builtins.PyCapsule
85
+ | Signature : (example. Example2, list) -> None
80
86
|
81
87
| Print entries of a Python list
82
88
|
83
- | pprriinntt__lliisstt__22(...)
84
- | Signature : (Example2, list<str>) -> None
89
+ | pprriinntt__lliisstt__22(...) from builtins.PyCapsule
90
+ | Signature : (example. Example2, list<str>) -> None
85
91
|
86
92
| Print entries of a C++ list
87
93
|
88
- | pprriinntt__sseett(...)
89
- | Signature : (Example2, set) -> None
94
+ | pprriinntt__sseett(...) from builtins.PyCapsule
95
+ | Signature : (example. Example2, set) -> None
90
96
|
91
97
| Print entries of a Python set
92
98
|
93
- | pprriinntt__sseett__22(...)
94
- | Signature : (Example2, set<str>) -> None
99
+ | pprriinntt__sseett__22(...) from builtins.PyCapsule
100
+ | Signature : (example. Example2, set<str>) -> None
95
101
|
96
102
| Print entries of a C++ set
97
103
|
98
- | tthhrrooww__eexxcceeppttiioonn(...)
99
- | Signature : (Example2) -> None
104
+ | tthhrrooww__eexxcceeppttiioonn(...) from builtins.PyCapsule
105
+ | Signature : (example. Example2) -> None
100
106
|
101
107
| Throw an exception
102
108
|
103
- | ttuuppllee__ppaasssstthhrroouugghh(...)
104
- | Signature : (Example2, (bool, str, int32_t )) -> (int32_t , str, bool)
109
+ | ttuuppllee__ppaasssstthhrroouugghh(...) from builtins.PyCapsule
110
+ | Signature : (example. Example2, (bool, str, int )) -> (int , str, bool)
105
111
|
106
112
| Return a triple in reversed order
107
113
|
108
114
| ----------------------------------------------------------------------
109
115
| Data and other attributes defined here:
110
116
|
111
- | ____nneeww____ = <built-in method __new__ of Example2_meta object>
112
- | T.__new__(S, ...) -> a new object with type S, a subtype of T
113
- |
114
117
| ____ppyybbiinndd1111____ = <capsule object NULL>
115
- |
116
- | nneeww__iinnssttaannccee = <built-in method new_instance of PyCapsule object>
117
- | Signature : () -> Example2
118
- |
119
- | Return an instance
120
118
121
119
Destructing Example2
0 commit comments