| Home | Trees | Indices | Help |
|
|---|
|
|
Certain utilities to make the life more easy.
Author: André Malo
|
|||
|
ImportWarning A package import failed, but is configured to not be fatal |
|||
|
BaseDecorator Base decorator class |
|||
|
PooledInterface Interface for pooled objects |
|||
|
BasePool Abstract pool of arbitrary objects |
|||
|
Version Represents the package version |
|||
|
|||
| callable |
|
||
| callable |
|
||
| any |
|
||
| tuple |
|
||
| iterable |
|
||
| tuple or str |
|
||
| property |
|
||
| list |
|
||
| int |
|
||
|
|||
__package__ =
|
|||
|
|||
|
Find argument position and create arg setter: The signature of the setter function is:
def setarg(args, kwargs, value_func):
'''
Set argument
The argument is set only if the `value_func` function says so::
def value_func(oldval):
'''
Determine argument value
:Parameters:
`oldval` : any
Value passed in
:Return: A tuple containing a boolean if the value is
new and should be set (vs. to leave the
passed-in value) and the final value
:Rtype: ``tuple``
'''
:Parameters:
`args` : sequence
Positional arguments
`kwargs` : ``dict``
Keyword arguments
`value_func` : ``callable``
Value function
:Return: A tuple containing `value_func`'s return value, the
new args and the new kwargs.
:Rtype: ``tuple``
'''
|
Load a dotted name The dotted name can be anything, which is passively resolvable
(i.e. without the invocation of a class to get their attributes or
the like). For example,
|
|
package recursively
|
Parse a socket specification This is either u'host:port' or u'/foo/bar'. The latter ( For internet sockets, the port is optional (will be
|
|
|
Replacement for str.__hash__ The function is supposed to give identical results on 32 and 64 bit systems.
|
| Home | Trees | Indices | Help |
|
|---|