Did I find the right examples for you? yes no

All Samples(7)  |  Call(0)  |  Derive(0)  |  Import(7)
A class which presents the reverse of a sequence without duplicating it.
From: "Steven D. Majewski" <sdm7g@elvis.med.virginia.edu>

It works on mutable or inmutable sequences.

>>> chars = list(Rev('Hello World!'))
>>> print ''.join(chars)
!dlroW olleH

The .forw is so you can use anonymous sequences in __init__, and still(more...)

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Demo/classes/Rev.py   pytaint(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/p/y/Py2crazy-HEAD/Python-2.7.5/Demo/classes/Rev.py   Py2crazy(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/p/y/PyCPython-HEAD/Python-2.7.1/Demo/classes/Rev.py   PyCPython(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/i/n/IncPy-HEAD/Demo/classes/Rev.py   IncPy(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/p/y/python-with-braces-HEAD/Demo/classes/Rev.py   python-with-braces(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/p/y/python2.7-mod-HEAD/Demo/classes/Rev.py   python2.7-mod(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":

src/s/l/SlopPy-HEAD/Demo/classes/Rev.py   SlopPy(Download)
def _test():
    import doctest, Rev
    return doctest.testmod(Rev)
 
if __name__ == "__main__":