example2.ref 3.2 KB
Newer Older
Wenzel Jakob's avatar
Wenzel Jakob committed
1
2
3
4
15
5
Example2: No constructor defined!
can't set attribute
Wenzel Jakob's avatar
Wenzel Jakob committed
5
6
key: key2, value=value2
key: key, value=value
Wenzel Jakob's avatar
Wenzel Jakob committed
7
key: key, value=value
Wenzel Jakob's avatar
Wenzel Jakob committed
8
key: key2, value=value2
9
10
11
12
13
14
key: key3
key: key2
key: key1
key: key1
key: key2
key: key3
Wenzel Jakob's avatar
Wenzel Jakob committed
15
16
17
18
19
20
Entry at positon 0: value
list item 0: overwritten
list item 1: value2
list item 0: value
list item 1: value2
This exception was intentionally thrown.
Wenzel Jakob's avatar
Wenzel Jakob committed
21
22
(u'test', True)
(5L, u'test', True)
Wenzel Jakob's avatar
Wenzel Jakob committed
23
24
Help on class Example2 in module example

Wenzel Jakob's avatar
Wenzel Jakob committed
25
26
27
class EExxaammppllee22(__builtin__.object)
 |  Example 2 documentation
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
28
29
 |  Methods defined here:
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
30
31
 |  ____iinniitt____(...)
 |      x.__init__(...) initializes x; see help(type(x)) for signature
Wenzel Jakob's avatar
Wenzel Jakob committed
32
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
33
34
 |  ggeett__ddiicctt(...)
 |      Signature : (Example2) -> dict
Wenzel Jakob's avatar
Wenzel Jakob committed
35
36
37
 |      
 |      Return a Python dictionary
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
38
39
 |  ggeett__ddiicctt__22(...)
 |      Signature : (Example2) -> dict<str, str>
Wenzel Jakob's avatar
Wenzel Jakob committed
40
41
42
 |      
 |      Return a C++ dictionary
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
43
44
 |  ggeett__lliisstt(...)
 |      Signature : (Example2) -> list
Wenzel Jakob's avatar
Wenzel Jakob committed
45
46
47
 |      
 |      Return a Python list
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
48
49
 |  ggeett__lliisstt__22(...)
 |      Signature : (Example2) -> list<str>
Wenzel Jakob's avatar
Wenzel Jakob committed
50
51
52
 |      
 |      Return a C++ list
 |  
53
54
55
56
57
58
59
60
61
62
 |  ggeett__sseett(...)
 |      Signature : (Example2) -> set
 |      
 |      Return a Python set
 |  
 |  ggeett__sseett22(...)
 |      Signature : (Example2) -> set
 |      
 |      Return a C++ set
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
63
64
 |  ppaaiirr__ppaasssstthhrroouugghh(...)
 |      Signature : (Example2, (bool, str)) -> (str, bool)
Wenzel Jakob's avatar
Wenzel Jakob committed
65
66
67
 |      
 |      Return a pair in reversed order
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
68
69
 |  pprriinntt__ddiicctt(...)
 |      Signature : (Example2, dict) -> None
Wenzel Jakob's avatar
Wenzel Jakob committed
70
71
72
 |      
 |      Print entries of a Python dictionary
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
73
74
 |  pprriinntt__ddiicctt__22(...)
 |      Signature : (Example2, dict<str, str>) -> None
Wenzel Jakob's avatar
Wenzel Jakob committed
75
76
77
 |      
 |      Print entries of a C++ dictionary
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
78
79
 |  pprriinntt__lliisstt(...)
 |      Signature : (Example2, list) -> None
Wenzel Jakob's avatar
Wenzel Jakob committed
80
81
82
 |      
 |      Print entries of a Python list
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
83
84
 |  pprriinntt__lliisstt__22(...)
 |      Signature : (Example2, list<str>) -> None
Wenzel Jakob's avatar
Wenzel Jakob committed
85
86
87
 |      
 |      Print entries of a C++ list
 |  
88
89
90
91
92
93
94
95
96
97
 |  pprriinntt__sseett(...)
 |      Signature : (Example2, set) -> None
 |      
 |      Print entries of a Python set
 |  
 |  pprriinntt__sseett__22(...)
 |      Signature : (Example2, set<str>) -> None
 |      
 |      Print entries of a C++ set
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
98
99
 |  tthhrrooww__eexxcceeppttiioonn(...)
 |      Signature : (Example2) -> None
Wenzel Jakob's avatar
Wenzel Jakob committed
100
101
102
 |      
 |      Throw an exception
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
103
104
 |  ttuuppllee__ppaasssstthhrroouugghh(...)
 |      Signature : (Example2, (bool, str, int32_t)) -> (int32_t, str, bool)
Wenzel Jakob's avatar
Wenzel Jakob committed
105
106
107
108
109
110
 |      
 |      Return a triple in reversed order
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
111
112
113
 |  ____nneeww____ = <built-in method __new__ of Example2_meta object>
 |      T.__new__(S, ...) -> a new object with type S, a subtype of T
 |  
114
 |  ____ppyybbiinndd1111____ = <capsule object NULL>
Wenzel Jakob's avatar
Wenzel Jakob committed
115
116
117
118
119
 |  
 |  nneeww__iinnssttaannccee = <built-in method new_instance of PyCapsule object>
 |      Signature : () -> Example2
 |      
 |      Return an instance
Wenzel Jakob's avatar
Wenzel Jakob committed
120
121

Destructing Example2