Skip to content

lawref.evaluator.limits

Семантические лимиты — SPEC §238.

Превышение — детерминированный отказ RESOURCE_LIMIT, а не молчаливо неполный вывод: исключение поднимается из глубины замыкания и обрывает вычисление.

Classes

NameDescription
LimitExceeded§238: превышение семантического лимита — детерминированный отказ RESOURCE_LIMIT.

Functions

NameDescription
check_limitNo description.

LimitExceededclass#

class LimitExceeded(counter: str, limit: int)

Bases: Exception

§238: превышение семантического лимита — детерминированный отказ RESOURCE_LIMIT.

codeattributeinstance attribute#

code = 'RESOURCE_LIMIT'

counterattributeinstance attribute#

counter = counter

limitattributeinstance attribute#

limit = limit

check_limitfunction#

def check_limit(limits: dict, counter: str, value: int) -> None

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.