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/w/h/whiff-1.1/whiff/middleware/ifdef.py   whiff(Download)
            variable = whiffenv.getName(env) #env.get(whiffenv.NAME)
            if not variable:
                raise ValueError, "ifdef: variable not specified and %s not found in environment" % (whiffenv.NAME,)
            variable = variable.strip()
        #pr "IFDEF TESTING VAR", variable
    result = "".join(list(sresult))
    print "print GOT", repr(result)
    env = { "wrongvar": "present", whiffenv.NAME: "testvar2" }
    app = ifdef(page="WRONG PAGE", elsePage="right page")
    sresult = app(env, misc.ignore)