pculture/miro — comment on commit b2ba7d0abf8c5c5a3addebcdcad15eaf4a633b21
File: tv/lib/item.py line 350
By bendk:

I think that's true in the general case, but if you're pretty sure that the attribute is set, then try..except is faster. This site seems to imply that for dictionary access at least: http://paltman.com/2008/01/18/try-except-performance-in-python-a-simple-test/. I mostly just think it's cleaner to use try..except, but I don't really care either way. I haven't profiled it so I'm not sure what's really faster.