MOAL.languages.features.python package

Submodules

MOAL.languages.features.python.class_decorators module

MOAL.languages.features.python.class_decorators.ClassPrimitive[source]

alias of NewClass

MOAL.languages.features.python.class_decorators.cls_dec(cls)[source]
MOAL.languages.features.python.class_decorators.cls_dec2(cls)[source]

MOAL.languages.features.python.comprehensions module

MOAL.languages.features.python.comprehensions._handle(data)[source]

Quick handler to help with nested tuple comprehensions – arguments are not easily passed using map, so this deals with passing them as *args, since the map function won’t do it automatically.

MOAL.languages.features.python.comprehensions._nested(min=2, max=10)[source]

Defer to a separate function - to keep things... relatively sane

MOAL.languages.features.python.context_manager module

class MOAL.languages.features.python.context_manager.FakeDatabase[source]
save(*args, **kwargs)
class MOAL.languages.features.python.context_manager.FakeDatabaseError[source]
class MOAL.languages.features.python.context_manager.FakeDatabaseSaveHandler(content)[source]
__enter__()
__exit__(exception_type, exception_value, traceback)
__init__(content)
_print(data)
MOAL.languages.features.python.context_manager.orm_save(*args, **kwds)[source]
MOAL.languages.features.python.context_manager.orm_save2(*args, **kwds)[source]
MOAL.languages.features.python.context_manager.to_list(*args, **kwds)[source]

MOAL.languages.features.python.index_slicing module

MOAL.languages.features.python.packing_unpacking module

MOAL.languages.features.python.packing_unpacking.div_exp(*nums)[source]
MOAL.languages.features.python.packing_unpacking.func(*args, **kwargs)[source]
MOAL.languages.features.python.packing_unpacking.nums_and_squares(max_nums)[source]