Basic definitions, decorators and functions.
bool
|
isinf(x)
Check if float x is infinite (positive or negative). |
|
|
bool
|
isnan(x)
Check if float x is not a number (NaN). |
|
|
|
clips(bstr,
limit=50,
white='
' )
Clip a string to the given length limit. |
|
|
|
halfs2(str2)
Split a string in 2 halfs. |
|
|
|
isclass(obj)
Return True if obj is a
class . |
|
|
|
isfinite(obj)
Check for Inf and NaN values. |
|
|
|
isidentifier(obj)
Return True if obj is a valid Python
identifier. |
|
|
|
isint(obj,
both=False)
Check for int type or an integer float
value. |
|
|
|
|
|
isneg0(obj)
Check for NEG0, negative 0.0. |
|
|
|
|
|
issequence(obj,
*excluded)
Check for sequence types. |
|
|
|
isstr(obj)
Check for string types. |
|
|
|
issubclassof(Sub,
Super)
Check whether a class is a sub-class of a super class. |
|
|
|
len2(items)
Make built-in function len work for
generators, iterators, etc. |
|
|
|
map1(func,
*xs)
Apply each argument to a single-argument function and return a
tuple of results. |
|
|
|
map2(func,
*xs)
Apply arguments to a function and return a tuple of
results. |
|
|
|
|
|
ub2str(ub)
Convert unicode or bytes to
str . |
|
|