1 // sequence_iterator_example.pycmd
3 // Copyright (c) 2012 - Michele De Stefano (micdestefano@users.sourceforge.net)
5 // Distributed under the MIT License (See accompanying file LICENSE)
9 * \example sequence_iterator_example.pycmd
11 * Shows the usage of the sequence_iterator_example extension from the
15 mds_utils::python::PySequenceIterator usage example from the Python
18 >>> import sequence_iterator_test as test
19 >>> l = [1.1,2.2,3.3,4.4]
20 >>> test.print_seq_d(l)
22 >>> test.incr_seq_d(l)
25 >>> l = [1.1+2.2j,3.3+4.4j,5.5+6.6j]
26 >>> test.print_seq_cplx(l)
27 (1.1,2.2),(3.3,4.4),(5.5,6.6),
28 >>> test.incr_seq_cplx(l)
30 [(2.1+2.2j), (4.3+4.4j), (6.5+6.6j)]