[docs] [issue19438] Where is NoneType in Python 3?

Christian Heimes report at bugs.python.org
Tue Oct 29 21:33:51 CET 2013


Christian Heimes added the comment:

How about:

    type(v) in (bytes, type(None))

or:

   isinstance(v, (bytes, type(None))

or:

   v is None or type(v) is bytes

or:

  v is None or isinstance(v, bytes)

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19438>
_______________________________________


More information about the docs mailing list