]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/iterator.py
1 # Copyright David Abrahams 2004. Distributed under the Boost
2 # Software License, Version 1.0. (See accompanying
3 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 >>> from iterator_ext import *
6 >>> from input_iterator import *
25 Range2 wraps a transform_iterator which doubles the elements it
26 traverses. This proves we can wrap input iterators
36 >>> for y in l2.primes:
44 >>> for y in l2.evens:
56 >>> for a in ll: #doctest: +NORMALIZE_WHITESPACE
65 from __future__
import print_function
73 return doctest
.testmod(sys
.modules
.get(__name__
))
75 if __name__
== '__main__':
79 if (status
== 0): print("Done.")