Try: rather than if :

Ian Kelly ian.g.kelly at gmail.com
Mon Dec 14 18:12:26 EST 2015


On Mon, Dec 14, 2015 at 3:38 PM, Vincent Davis <vincent at vincentdavis.net> wrote:
> In the code below try is used to check if handle has the attribute name. It
> seems an if statement could be used. Is there reason one way would be
> better than another?

http://www.oranlooney.com/lbyl-vs-eafp/



More information about the Python-list mailing list