FYI Cython optimizes `range(n)` so this won't have any effect