engforge.patterns

Functions

chunks

Yield successive n-sized chunks from lst.

flat2gen

flatten

singleton_meta_object

Class decorator that transforms (and replaces) a class definition (which must have a Singleton metaclass) with the actual singleton object.

Classes

InputSingletonMeta

Metaclass for singletons.

Singleton

A non-thread-safe helper class to ease implementing singletons.

SingletonMeta

Metaclass for singletons.

inst_vectorize