[Python] Python equivalent of the PHP stdClass

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    Coming from PHP, I love the pythonic syntax. Is there a Python equivalent of the PHP stdClass?

    Edit: I want to point out I'm looking for a specific data type in Python to store data like the stdClass in PHP. So not in a dict, list, array, .. but in an object. Does there exist a specific data type in Python to store only data that behaves like an object?

    Continue reading...

Compartilhe esta Página