|
_import_object(source)
helper to import object from module; accept format `path.to.object` |
source code
|
|
|
add_doc(obj,
doc)
add docstring to an object |
source code
|
|
|
|
|
bascii_to_str(s)
helper to convert ascii bytes -> native str |
source code
|
|
integer
|
byte_elem_value(c)
Return the integer ordinal of a one-character string. |
|
|
bool
|
callable(object)
Return whether the object is callable (i.e., some kind of function). |
|
|
|
exc_err()
return current error object (to avoid try/except syntax change) |
source code
|
|
|
get_method_function(func)
given (potential) method, return underlying function |
source code
|
|
|
iter_byte_chars(s)
iterate over byte string as sequence of 1-byte strings |
source code
|
|
|
iter_byte_values(s)
iterate over byte string as sequence of ints 0-255 |
source code
|
|
|
|
|
|
string
|
|
|
|
string
|
join_bytes(S,
iterable)
Return a string which is the concatenation of the strings in the
iterable. |
source code
|
|
unicode
|
|
list
|
lmap(function,
sequence,
sequence=...,
...)
Return a list of the results of applying the function to the items of
the argument sequence(s). |
|
|
|
next(iterator,
default=...)
Return the next item from the iterator. |
|
|
|
print_(*args,
**kwds)
The new-style print function. |
source code
|
|
|
str_to_bascii(s)
helper to convert ascii native str -> bytes |
source code
|
|
|
str_to_uascii(s)
helper to convert ascii native str -> unicode |
source code
|
|
|
|
|
uascii_to_str(s)
helper to convert ascii unicode -> native str |
source code
|
|
|
JYTHON = False
|
|
PY2 = True
|
|
PY27 = True
|
|
PY3 = False
|
|
PYPY = False
|
|
PY_MAX_25 = False
|
|
PY_MIN_32 = False
|
|
SUPPORTS_DIR_METHOD = True
|
|
__package__ = ' ldaptor '
|
|
_lazy_attrs = { ' BytesIO ' : ' cStringIO.StringIO ' , ' NativeStringI ...
|
|
int_types = ( <type 'int'>, <type 'long'>)
|
|
log = logging.getLogger(__name__)
|
|
method_function_attr = ' im_func '
|
|
next_method_attr = ' next '
|
|
num_types = ( <type 'int'>, <type 'long'>, <type 'float'>)
|