Jun-22-2018, 07:17 PM
Yes, you showed good use of
is
. When I say type checking is discouraged, I mean using type(x) == blah
. Using is
with an object (None) is very normal. (When you really need it, isinstance is used instead.)