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