Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
A str-like object which value is computed when the object is actually
used as a string. Function argument must return a string.

>>> s = LazyString(str, 'Hello world!')
>>> print s
Hello world!
>>> def print_a_and_return_b(a, b):
...     print a
...     return b
>>> s = LazyString(print_a_and_return_b, 'Hello', 'world')(more...)

src/r/s/rst2rst-HEAD/rst2rst/tests/test_packaging.py   rst2rst(Download)
    def get_version(self):
        """Return rst2rst.__version__."""
        from rst2rst import __version__
        return __version__