Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/j/p/jpylyzer-HEAD/jpylyzer/jpylyzer.py   jpylyzer(Download)
def writeElement(elt,codec):
    # Writes element as XML to stdout using defined codec
 
    # Element to string
    if config.PYTHON_VERSION.startswith(config.PYTHON_2):
        # Python2.x does automatic conversion between byte and string types,
        # hence, binary data can be output using sys.stdout
        if config.PYTHON_VERSION.startswith(config.PYTHON_2):
            ETree.ElementTree(elt).write(codec, xml_declaration=False)
        # Python3.x recognizes bytes and str as different types and encoded
 
    # Set encoding of the terminal to UTF-8
    if config.PYTHON_VERSION.startswith(config.PYTHON_2):
        out = codecs.getwriter(config.UTF8_ENCODING)(sys.stdout)
    elif config.PYTHON_VERSION.startswith(config.PYTHON_3):

src/j/p/jpylyzer-HEAD/jpylyzer/etpatch.py   jpylyzer(Download)
            # which is dependent on the Python version used
 
            if config.PYTHON_VERSION.startswith(config.PYTHON_2):
                # Python 2.x
                numericTypes = [int, long, float, bool]