Which break the principle of "least surprise"
i.e most python libraries raise exception instead (ask for forgiveness not permission) so one could choose to not handle them , or handle them at a higher level
also it breaks static analysis tool that will say that
fromstring(DIFF).apply(dir)
is not valid because false has no apply methods
Which break the principle of "least surprise"
i.e most python libraries raise exception instead (ask for forgiveness not permission) so one could choose to not handle them , or handle them at a higher level
also it breaks static analysis tool that will say that
is not valid because
falsehas no apply methods