minus-squaresnekmuffin@lemmy.dbzer0.comtoProgrammer Humor@lemmy.ml•Always follow 3-2-1 backup rulelinkfedilinkarrow-up4·2 months agoPretty sure its not a PEP, but the python glossary mentions it. Searching ‘python EAFP’ brings up a lot of discussion on the topic too, so if nothing else its definitely a widespread phenomenon linkfedilink
minus-squaresnekmuffin@lemmy.dbzer0.comtoProgrammer Humor@lemmy.ml•Always follow 3-2-1 backup rulelinkfedilinkarrow-up6·2 months agoTruers, just mentioning it linkfedilink
minus-squaresnekmuffin@lemmy.dbzer0.comtoProgrammer Humor@lemmy.ml•Always follow 3-2-1 backup rulelinkfedilinkarrow-up40arrow-down2·2 months agoTbf python guidelines encourage it over if/else in cases like this. “Easier to ask for forgiveness than for permission” or something along the lines linkfedilink
Pretty sure its not a PEP, but the python glossary mentions it. Searching ‘python EAFP’ brings up a lot of discussion on the topic too, so if nothing else its definitely a widespread phenomenon