example-python-types.ref 4.32 KB
Newer Older
1
2
15
5
3
example.ExamplePythonTypes: No constructor defined!
4
can't set attribute
5
### ExamplePythonTypes @ 0x1045b80 created via new_instance
Wenzel Jakob's avatar
Wenzel Jakob committed
6
key: key2, value=value2
Wenzel Jakob's avatar
Wenzel Jakob committed
7
key: key, value=value
8
key: key, value=value
Wenzel Jakob's avatar
Wenzel Jakob committed
9
key: key2, value=value2
10
key: key3
Wenzel Jakob's avatar
Wenzel Jakob committed
11
key: key2
12
key: key1
13
key: key1
14
15
key: key2
key: key3
Wenzel Jakob's avatar
Wenzel Jakob committed
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
21
22
23
[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
24
This exception was intentionally thrown.
25
26
(u'test', True)
(5L, u'test', True)
27
Help on class ExamplePythonTypes in module example
Wenzel Jakob's avatar
Wenzel Jakob committed
28

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

133
__name__(example) = example
134
135
136
137
__name__(example.ExamplePythonTypes) = ExamplePythonTypes
__module__(example.ExamplePythonTypes) = example
__name__(example.ExamplePythonTypes.get_set) = get_set
__module__(example.ExamplePythonTypes.get_set) = example
138
139
140
Instances not destroyed: 1
### ExamplePythonTypes @ 0x1045b80 destroyed
Instances not destroyed: 0