Skip to content

Class Magic Method: __str__ #202

@sapphire008

Description

@sapphire008

I found __str__ method often very helpful. It allows you to do print(object_instance) to display custom created print outputs of the object instance. It can be especially helpful when trying to visualize some custom data structures. Maybe it is worthwhile to mention. Just a thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions