Je t’embrasse Salutations from Silicon Valley, California

19Mar/090

Code Highlight

Just a small test of a new code-highlighting feature.

#!/usr/bin/env python
def test():
    try:
        print "Trying something..."
        int("foo") # Should cause an exception
        return "TRY"
    except:
        print "Excepting something..."
        return "EXCEPT"
    finally:
        print "Finalizing something..."
        return "FINALLY"
    return "FUNCTION"

if __name__ == "__main__":
    print test()
Filed under: Python No Comments