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()
March 19th, 2009 in
Python