Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

599
Vistas
Are Python coroutines stackless or stackful?

I've seen conflicting views on whether Python coroutines (I primarily mean async/await) are stackless or stackful.

Some sources say they're stackful:

  • http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2074r0.pdf

    'Python coroutines are stackful.'

  • How do coroutines in Python compare to those in Lua?

    Yes, Python coroutines are stackful, first-class and asymmetric.

While others seem to imply they're stackless, e.g. https://gamelisp.rs/reference/coroutines.html

GameLisp's coroutines follow the model set by Rust, Python, C# and C++. Our coroutines are "stackless"

In general my understanding always was that any meaningful async/await implementation implies stackless coroutines, while stackful ones are basically fibers (userspace threads, often switched more or less cooperatively), like goroutines, Boost.Coroutine, apparently those in Lua etc.

Is my understanding correct? Or do Python coroutines somehow fundamentally differ from those in say C++, and are stackful? Or do the authors of the source above mean different things?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda