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

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

132
133
134
135
136
__name__(example) = example
__name__(example.Example2) = Example2
__module__(example.Example2) = example
__name__(example.Example2.get_set) = get_set
__module__(example.Example2.get_set) = example
Wenzel Jakob's avatar
Wenzel Jakob committed
137
Destructing Example2