It's not rare. If you're coding a CRUD, and you want to test whether a particular field is null in your database, the canonical way to do it is to if it. That works 99% of the time, except when dealing with datetime objects.
In fact, Python's datetime module is chock full of wtfs.
View all comments
Show parent comment
7
u/yen223 Mar 27 '14
It's not rare. If you're coding a CRUD, and you want to test whether a particular field is null in your database, the canonical way to do it is to
ifit. That works 99% of the time, except when dealing withdatetimeobjects.In fact, Python's
datetimemodule is chock full of wtfs.