Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/e/l/eliot-0.3.0/benchmarks/serialization.py   eliot(Download)
import time
from eliot import Logger, MessageType, Field, ActionType
def _ascii(s):
F4 = Field.forTypes("list", [list], "list of integers")
M = MessageType("system:message", [F1, F2, F3, F4], "description")
A = ActionType("action", [], [], [], "desc")
def run():
    start = time.time()
    with A(log):
        for i in xrange(N):
            m = M(integer=3, string=b"abcdeft", string2="dgsjdlkgjdsl", list=[1, 2, 3, 4])