Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test_long_kernel #826

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Add test_long_kernel #826

merged 1 commit into from
Aug 25, 2024

Commits on Aug 25, 2024

  1. Add test_long_kernel

    On Python 3.12, this provokes a stack overflow in the scheduler. It is
    not quite clear why that's the case; pure-Python recursion even with
    generators seems to respond well to setrecursionlimit():
    
    ```py
    def f(n):
        if n:
            yield from f(n-1)
        else:
            yield 5
    
    import sys
    sys.setrecursionlimit(3500)
    print(list(f(3400)))
    ```
    
    That said, there have been [behavior](python/cpython#96510)
    [changes](python/cpython#112215)
    in Py3.12 in this regard, but it is not clear what exactly
    about Loopy's behavior makes it fall into the 'bad' case.
    inducer committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    6587602 View commit details
    Browse the repository at this point in the history