Skip to content

Class Magic Method: __str__ #202

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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