Module check_types
[hide private]
[frames] | no frames]

Module check_types

source code

Special module for checking types.

Functions [hide private]
bool
is_filetype(obj)
Check if the given Python object is a file.
source code
bool
is_unicode(obj)
Check if the given Python object is a unicode string.
source code
Variables [hide private]
  file = None
hash(x)
  io_module = True
  __package__ = None
hash(x)

Imports: IOBase


Function Details [hide private]

is_filetype(obj)

source code 

Check if the given Python object is a file.

Parameters:
  • obj (anything) - The Python object.
Returns: bool
True if the object is a file, False otherwise.

is_unicode(obj)

source code 

Check if the given Python object is a unicode string.

Parameters:
  • obj (anything) - The Python object.
Returns: bool
True if the object is a unicode string, False otherwise.