Module k.python

Part of kiwi

Generic python addons

ClassClassInittableMetaTypeUndocumented
ClassClassInittableObject

I am an object which will call a classmethod called

Class_ForwardedPropertyUndocumented
ClassAttributeForwarder

AttributeForwarder is an object which is used to forward certain

FunctionnamedAny

Get a fully named package, module, module-global object, or attribute.

ClassSettable

A mixin class for syntactic sugar. Lets you assign attributes by

Functionqual

Convert a class to a string representation, which is the name of the module

Functionclamp

Ensures that x is between the limits set by low and high.

Functionslicerange

Takes a slice object and returns a range iterator

Functiondeprecationwarn

Prints a deprecation warning

Functiondisabledeprecationcall

Disables all deprecation warnings during the function call to func

Classenum

enum is an enumered type implementation in python.

Functionall

Predict used to check if all items in a seq are True.

Functionany

Predict used to check if any item in a seq are True.

def namedAny(name):

Get a fully named package, module, module-global object, or attribute.

def qual(klass):

Convert a class to a string representation, which is the name of the module plut a dot plus the name of the class.

def clamp(x, low, high):

Ensures that x is between the limits set by low and high. For example, * clamp(5, 10, 15) is 10. * clamp(15, 5, 10) is 10. * clamp(20, 15, 25) is 20.

def slicerange(slice, limit):

Takes a slice object and returns a range iterator

def deprecationwarn(msg, stacklevel=2):

Prints a deprecation warning

def disabledeprecationcall(func, *args, **kwargs):

Disables all deprecation warnings during the function call to func

def all(seq):

Predict used to check if all items in a seq are True.

def any(seq):

Predict used to check if any item in a seq are True.