[Python] How do I put docstrings on Enums?

Discussão em 'Python' iniciado por Stack, Novembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    Python 3.4 has a new enum module and Enum data type. If you are unable to switch to 3.4 yet, Enum has been backported.

    Since Enum members support docstrings, as pretty much all python objects do, I would like to set them. Is there an easy way to do that?

    Continue reading...

Compartilhe esta Página