r/pythontips • • Apr 06 '19

Some Python anti-patterns

46 Upvotes

18 comments sorted by

View all comments

0

u/[deleted] Apr 06 '19

[deleted]

4

u/Airith Apr 06 '19

Exceptions in python are decently performant, it's quite common to use them for control flow. I don't think the user/age is a good example for them. Returning None would be akin to returning an error code like in C code.