Module check_types
source code
Special module for checking types.
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
Imports:
complex64,
complex128,
float32,
float64,
int16,
int32,
complex256,
float16,
float128,
int8,
int64,
IOBase,
StringIO,
unicode
Check if the given number is a Python or numpy complex.
- Parameters:
num (anything.) - The number to check.
- Returns: bool
- True if the number is a complex, False otherwise.
|
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.
|
Check if the given Python object can operate as a readable file.
- Parameters:
obj (anything) - The Python object.
- Returns: bool
- True if the object can operate as a readable file, False
otherwise.
|
Check if the given Python object can operate as both a readable and
writable file.
- Parameters:
obj (anything) - The Python object.
- Returns: bool
- True if the object can operate as both a readable and writable
file, False otherwise.
|
Check if the given Python object can operate as a writable file.
- Parameters:
obj (anything) - The Python object.
- Returns: bool
- True if the object can operate as a writable file, False
otherwise.
|
Check if the given number is a Python or numpy float.
- Parameters:
num (anything.) - The number to check.
- Returns: bool
- True if the number is a float, False otherwise.
|
Check if the given number is a Python or numpy int.
- Parameters:
num (anything.) - The number to check.
- Returns: bool
- True if the number is a int, False otherwise.
|
Check if the given value is a Python list.
- Parameters:
val (anything.) - The value to check.
- Returns: bool
- True if the value is a list, False otherwise.
|
Check if the given value is a Python list of lists.
- Parameters:
val (anything.) - The value to check.
- Returns: bool
- True if the value is a list of lists, False otherwise.
|
Check if the given number is a Python or numpy int or float.
- Parameters:
num (anything.) - The number to check.
- Returns: bool
- True if the number is an int or float, False otherwise.
|
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.
|