Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 1 | 15 |
| 2 | 5 |
| 3 | Example2: No constructor defined! |
| 4 | can't set attribute |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 5 | key: key2, value=value2 |
| 6 | key: key, value=value |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 7 | key: key, value=value |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 8 | key: key2, value=value2 |
Wenzel Jakob | 333e889 | 2015-11-14 19:04:49 +0100 | [diff] [blame^] | 9 | key: key3 |
| 10 | key: key2 |
| 11 | key: key1 |
| 12 | key: key1 |
| 13 | key: key2 |
| 14 | key: key3 |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 15 | Entry at positon 0: value |
| 16 | list item 0: overwritten |
| 17 | list item 1: value2 |
| 18 | list item 0: value |
| 19 | list item 1: value2 |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 20 | This exception was intentionally thrown. |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 21 | (u'test', True) |
| 22 | (5L, u'test', True) |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 23 | Help on class Example2 in module example |
| 24 | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 25 | class EExxaammppllee22(__builtin__.object) |
| 26 | | Example 2 documentation |
| 27 | | |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 28 | | Methods defined here: |
| 29 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 30 | | ____iinniitt____(...) |
| 31 | | x.__init__(...) initializes x; see help(type(x)) for signature |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 32 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 33 | | ggeett__ddiicctt(...) |
| 34 | | Signature : (Example2) -> dict |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 35 | | |
| 36 | | Return a Python dictionary |
| 37 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 38 | | ggeett__ddiicctt__22(...) |
| 39 | | Signature : (Example2) -> dict<str, str> |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 40 | | |
| 41 | | Return a C++ dictionary |
| 42 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 43 | | ggeett__lliisstt(...) |
| 44 | | Signature : (Example2) -> list |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 45 | | |
| 46 | | Return a Python list |
| 47 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 48 | | ggeett__lliisstt__22(...) |
| 49 | | Signature : (Example2) -> list<str> |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 50 | | |
| 51 | | Return a C++ list |
| 52 | | |
Wenzel Jakob | 333e889 | 2015-11-14 19:04:49 +0100 | [diff] [blame^] | 53 | | ggeett__sseett(...) |
| 54 | | Signature : (Example2) -> set |
| 55 | | |
| 56 | | Return a Python set |
| 57 | | |
| 58 | | ggeett__sseett22(...) |
| 59 | | Signature : (Example2) -> set |
| 60 | | |
| 61 | | Return a C++ set |
| 62 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 63 | | ppaaiirr__ppaasssstthhrroouugghh(...) |
| 64 | | Signature : (Example2, (bool, str)) -> (str, bool) |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 65 | | |
| 66 | | Return a pair in reversed order |
| 67 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 68 | | pprriinntt__ddiicctt(...) |
| 69 | | Signature : (Example2, dict) -> None |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 70 | | |
| 71 | | Print entries of a Python dictionary |
| 72 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 73 | | pprriinntt__ddiicctt__22(...) |
| 74 | | Signature : (Example2, dict<str, str>) -> None |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 75 | | |
| 76 | | Print entries of a C++ dictionary |
| 77 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 78 | | pprriinntt__lliisstt(...) |
| 79 | | Signature : (Example2, list) -> None |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 80 | | |
| 81 | | Print entries of a Python list |
| 82 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 83 | | pprriinntt__lliisstt__22(...) |
| 84 | | Signature : (Example2, list<str>) -> None |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 85 | | |
| 86 | | Print entries of a C++ list |
| 87 | | |
Wenzel Jakob | 333e889 | 2015-11-14 19:04:49 +0100 | [diff] [blame^] | 88 | | pprriinntt__sseett(...) |
| 89 | | Signature : (Example2, set) -> None |
| 90 | | |
| 91 | | Print entries of a Python set |
| 92 | | |
| 93 | | pprriinntt__sseett__22(...) |
| 94 | | Signature : (Example2, set<str>) -> None |
| 95 | | |
| 96 | | Print entries of a C++ set |
| 97 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 98 | | tthhrrooww__eexxcceeppttiioonn(...) |
| 99 | | Signature : (Example2) -> None |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 100 | | |
| 101 | | Throw an exception |
| 102 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 103 | | ttuuppllee__ppaasssstthhrroouugghh(...) |
| 104 | | Signature : (Example2, (bool, str, int32_t)) -> (int32_t, str, bool) |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 105 | | |
| 106 | | Return a triple in reversed order |
| 107 | | |
| 108 | | ---------------------------------------------------------------------- |
| 109 | | Data and other attributes defined here: |
| 110 | | |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 111 | | ____nneeww____ = <built-in method __new__ of Example2_meta object> |
| 112 | | T.__new__(S, ...) -> a new object with type S, a subtype of T |
| 113 | | |
Wenzel Jakob | 333e889 | 2015-11-14 19:04:49 +0100 | [diff] [blame^] | 114 | | ____ppyybbiinndd1111____ = <capsule object NULL> |
Wenzel Jakob | be0e834 | 2015-10-01 16:48:34 +0200 | [diff] [blame] | 115 | | |
| 116 | | nneeww__iinnssttaannccee = <built-in method new_instance of PyCapsule object> |
| 117 | | Signature : () -> Example2 |
| 118 | | |
| 119 | | Return an instance |
Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 120 | |
| 121 | Destructing Example2 |