Previous topic

cogen.core.sockets

Next topic

cogen.web

This Page

Quick search

Enter search terms or a module, class or function name.

cogen.core.util

Mischelaneous or common.

cogen.core.util.debug(trace=True, backtrace=1, other=None, output=<open file '<stderr>', mode 'w' at 0x019430C0>)
A decorator for debugging purposes. Shows the call arguments, result and instructions as they are runned.
class cogen.core.util.priority

Bases: object

How these priority flags are interpreted depends largely on the operation (since that’s where these are checked).

Property Description
DEFAULT Use the default_priority set in the Scheduler
LAST,  
NOPRIO Allways scheduler the operation/coroutine at the end of the queue
CORO Favor the coroutine - if it’s the case.
OP Favor the operation - if it’s the case.
FIRST,  
PRIO Allways schedule with priority
cogen.core.util.fmt_list(lst, lim=100)