example-python-types.ref 4.19 KB
Newer Older
1
2
15
5
3
example.ExamplePythonTypes: No constructor defined!
4
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)
26
Help on class ExamplePythonTypes in module example
Wenzel Jakob's avatar
Wenzel Jakob committed
27

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

132
__name__(example) = example
133
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
Destructing ExamplePythonTypes