2016-02-04 22:02:07 +00:00
|
|
|
|
15
|
|
|
|
|
5
|
|
|
|
|
example.Example2: No constructor defined!
|
|
|
|
|
can't set attribute
|
2015-11-30 11:30:28 +00:00
|
|
|
|
key: key2, value=value2
|
2015-10-01 14:48:34 +00:00
|
|
|
|
key: key, value=value
|
2016-02-04 22:02:07 +00:00
|
|
|
|
key: key, value=value
|
2015-07-05 18:05:44 +00:00
|
|
|
|
key: key2, value=value2
|
2015-11-14 18:04:49 +00:00
|
|
|
|
key: key3
|
2015-11-30 11:30:28 +00:00
|
|
|
|
key: key2
|
2015-11-14 18:04:49 +00:00
|
|
|
|
key: key1
|
2016-02-04 22:02:07 +00:00
|
|
|
|
key: key1
|
2015-11-14 18:04:49 +00:00
|
|
|
|
key: key2
|
|
|
|
|
key: key3
|
2015-07-05 18:05:44 +00:00
|
|
|
|
Entry at positon 0: value
|
|
|
|
|
list item 0: overwritten
|
|
|
|
|
list item 1: value2
|
|
|
|
|
list item 0: value
|
|
|
|
|
list item 1: value2
|
2016-02-07 15:36:26 +00:00
|
|
|
|
[u'array entry 1', u'array entry 2']
|
|
|
|
|
array item 0: array entry 1
|
|
|
|
|
array item 1: array entry 2
|
2015-07-05 18:05:44 +00:00
|
|
|
|
This exception was intentionally thrown.
|
2016-02-04 22:02:07 +00:00
|
|
|
|
(u'test', True)
|
|
|
|
|
(5L, u'test', True)
|
2015-07-05 18:05:44 +00:00
|
|
|
|
Help on class Example2 in module example
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
class EExxaammppllee22(__builtin__.object)
|
2015-10-01 14:48:34 +00:00
|
|
|
|
| Example 2 documentation
|
|
|
|
|
|
|
2015-07-05 18:05:44 +00:00
|
|
|
|
| Methods defined here:
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ____iinniitt____(...)
|
|
|
|
|
| x.__init__(...) initializes x; see help(type(x)) for signature
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
2016-02-07 15:36:26 +00:00
|
|
|
|
| ggeett__aarrrraayy(...)
|
|
|
|
|
| Signature : (example.Example2) -> list<unicode>[2]
|
|
|
|
|
|
|
|
|
|
|
| Return a C++ array
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__ddiicctt(...)
|
2015-11-30 11:30:28 +00:00
|
|
|
|
| Signature : (example.Example2) -> dict
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a Python dictionary
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__ddiicctt__22(...)
|
|
|
|
|
| Signature : (example.Example2) -> dict<unicode, unicode>
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a C++ dictionary
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__lliisstt(...)
|
2015-11-30 11:30:28 +00:00
|
|
|
|
| Signature : (example.Example2) -> list
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a Python list
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__lliisstt__22(...)
|
|
|
|
|
| Signature : (example.Example2) -> list<unicode>
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a C++ list
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__sseett(...)
|
2015-11-30 11:30:28 +00:00
|
|
|
|
| Signature : (example.Example2) -> set
|
2015-11-14 18:04:49 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a Python set
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ggeett__sseett22(...)
|
2015-11-30 11:30:28 +00:00
|
|
|
|
| Signature : (example.Example2) -> set
|
2015-11-14 18:04:49 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a C++ set
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ppaaiirr__ppaasssstthhrroouugghh(...)
|
|
|
|
|
| Signature : (example.Example2, (bool, unicode)) -> (unicode, bool)
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a pair in reversed order
|
|
|
|
|
|
|
2016-02-07 15:36:26 +00:00
|
|
|
|
| pprriinntt__aarrrraayy(...)
|
|
|
|
|
| Signature : (example.Example2, list<unicode>[2]) -> NoneType
|
|
|
|
|
|
|
|
|
|
|
| Print entries of a C++ array
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__ddiicctt(...)
|
|
|
|
|
| Signature : (example.Example2, dict) -> NoneType
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a Python dictionary
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__ddiicctt__22(...)
|
|
|
|
|
| Signature : (example.Example2, dict<unicode, unicode>) -> NoneType
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a C++ dictionary
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__lliisstt(...)
|
|
|
|
|
| Signature : (example.Example2, list) -> NoneType
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a Python list
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__lliisstt__22(...)
|
|
|
|
|
| Signature : (example.Example2, list<unicode>) -> NoneType
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a C++ list
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__sseett(...)
|
|
|
|
|
| Signature : (example.Example2, set) -> NoneType
|
2015-11-14 18:04:49 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a Python set
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| pprriinntt__sseett__22(...)
|
|
|
|
|
| Signature : (example.Example2, set<unicode>) -> NoneType
|
2015-11-14 18:04:49 +00:00
|
|
|
|
|
|
|
|
|
|
| Print entries of a C++ set
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| tthhrrooww__eexxcceeppttiioonn(...)
|
|
|
|
|
| Signature : (example.Example2) -> NoneType
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Throw an exception
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ttuuppllee__ppaasssstthhrroouugghh(...)
|
|
|
|
|
| Signature : (example.Example2, (bool, unicode, int)) -> (int, unicode, bool)
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
| Return a triple in reversed order
|
|
|
|
|
|
|
|
|
|
|
| ----------------------------------------------------------------------
|
|
|
|
|
| Data and other attributes defined here:
|
|
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
| ____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
|
2015-07-05 18:05:44 +00:00
|
|
|
|
|
2016-02-04 22:02:07 +00:00
|
|
|
|
__name__(example) = example
|
|
|
|
|
__name__(example.Example2) = Example2
|
|
|
|
|
__module__(example.Example2) = example
|
|
|
|
|
__name__(example.Example2.get_set) = get_set
|
|
|
|
|
__module__(example.Example2.get_set) = example
|
2015-07-05 18:05:44 +00:00
|
|
|
|
Destructing Example2
|