Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def mutePrint():
    global _ORIGINAL_STDOUT, _ORIGINAL_STDERR, _MUTED
    if _MUTED:
        return
    _MUTED = True

    _ORIGINAL_STDOUT = sys.stdout
    #_ORIGINAL_STDERR = sys.stderr
    sys.stdout = WritableNull()
        


src/r/l/rlpy-HEAD/rlpy/Domains/PacmanPackage/grading.py   rlpy(Download)
 
            if self.mute:
                util.mutePrint()
            try:
                # Call the question's function
            print '*** ' + message
            if self.mute:
                util.mutePrint()
            message = cgi.escape(message)
        self.messages[self.currentQuestion].append(message)