[Python] How to create Haskell-like sum types in Python?

Discussão em 'Python' iniciado por Stack, Janeiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    If I have some simple sum type in Haskell, like

    data Owner = Me | You


    How do I express that in Python in a convenient way?

    Continue reading...

Compartilhe esta Página