You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I disagree with the position that EAFP is better than
LBYL, or "generally recommended" by Python. (Where do you get that? From
the same sources that are so obsessed with DRY they'd rather introduce a
higher-order-function than repeat one line of code? :-)
IMO, the primary motivation for EAFP over LBYL is avaoiding TOCTOU bugs.
The text was updated successfully, but these errors were encountered:
https://mail.python.org/pipermail/python-dev/2014-March/133118.html
IMO, the primary motivation for EAFP over LBYL is avaoiding TOCTOU bugs.
The text was updated successfully, but these errors were encountered: