example2.ref 3.53 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
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.
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

25
class EExxaammppllee22(__builtin__.object)
Wenzel Jakob's avatar
Wenzel Jakob committed
26
27
 |  Example 2 documentation
 |  
Wenzel Jakob's avatar
Wenzel Jakob committed
28
29
 |  Methods defined here:
 |  
30
31
 |  ____iinniitt____(...)
 |      x.__init__(...) initializes x; see help(type(x)) for signature
Wenzel Jakob's avatar
Wenzel Jakob committed
32
 |  
33
 |  ggeett__ddiicctt(...)
Wenzel Jakob's avatar
Wenzel Jakob committed
34
 |      Signature : (example.Example2) -> dict
Wenzel Jakob's avatar
Wenzel Jakob committed
35
36
37
 |      
 |      Return a Python dictionary
 |  
38
39
 |  ggeett__ddiicctt__22(...)
 |      Signature : (example.Example2) -> dict<unicode, unicode>
Wenzel Jakob's avatar
Wenzel Jakob committed
40
41
42
 |      
 |      Return a C++ dictionary
 |  
43
 |  ggeett__lliisstt(...)
Wenzel Jakob's avatar
Wenzel Jakob committed
44
 |      Signature : (example.Example2) -> list
Wenzel Jakob's avatar
Wenzel Jakob committed
45
46
47
 |      
 |      Return a Python list
 |  
48
49
 |  ggeett__lliisstt__22(...)
 |      Signature : (example.Example2) -> list<unicode>
Wenzel Jakob's avatar
Wenzel Jakob committed
50
51
52
 |      
 |      Return a C++ list
 |  
53
 |  ggeett__sseett(...)
Wenzel Jakob's avatar
Wenzel Jakob committed
54
 |      Signature : (example.Example2) -> set
55
56
57
 |      
 |      Return a Python set
 |  
58
 |  ggeett__sseett22(...)
Wenzel Jakob's avatar
Wenzel Jakob committed
59
 |      Signature : (example.Example2) -> set
60
61
62
 |      
 |      Return a C++ set
 |  
63
64
 |  ppaaiirr__ppaasssstthhrroouugghh(...)
 |      Signature : (example.Example2, (bool, unicode)) -> (unicode, bool)
Wenzel Jakob's avatar
Wenzel Jakob committed
65
66
67
 |      
 |      Return a pair in reversed order
 |  
68
69
 |  pprriinntt__ddiicctt(...)
 |      Signature : (example.Example2, dict) -> NoneType
Wenzel Jakob's avatar
Wenzel Jakob committed
70
71
72
 |      
 |      Print entries of a Python dictionary
 |  
73
74
 |  pprriinntt__ddiicctt__22(...)
 |      Signature : (example.Example2, dict<unicode, unicode>) -> NoneType
Wenzel Jakob's avatar
Wenzel Jakob committed
75
76
77
 |      
 |      Print entries of a C++ dictionary
 |  
78
79
 |  pprriinntt__lliisstt(...)
 |      Signature : (example.Example2, list) -> NoneType
Wenzel Jakob's avatar
Wenzel Jakob committed
80
81
82
 |      
 |      Print entries of a Python list
 |  
83
84
 |  pprriinntt__lliisstt__22(...)
 |      Signature : (example.Example2, list<unicode>) -> NoneType
Wenzel Jakob's avatar
Wenzel Jakob committed
85
86
87
 |      
 |      Print entries of a C++ list
 |  
88
89
 |  pprriinntt__sseett(...)
 |      Signature : (example.Example2, set) -> NoneType
90
91
92
 |      
 |      Print entries of a Python set
 |  
93
94
 |  pprriinntt__sseett__22(...)
 |      Signature : (example.Example2, set<unicode>) -> NoneType
95
96
97
 |      
 |      Print entries of a C++ set
 |  
98
99
 |  tthhrrooww__eexxcceeppttiioonn(...)
 |      Signature : (example.Example2) -> NoneType
Wenzel Jakob's avatar
Wenzel Jakob committed
100
101
102
 |      
 |      Throw an exception
 |  
103
104
 |  ttuuppllee__ppaasssstthhrroouugghh(...)
 |      Signature : (example.Example2, (bool, unicode, int)) -> (int, unicode, 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:
 |  
111
112
113
114
115
116
117
 |  ____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
118

119
120
121
122
123
__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
124
Destructing Example2