Skip to content

Generate __str__ and __repr__ #185

Open

Description

@timosachsenberg

Just annotate a certain C++ in the pxd function to use as "wrap-as-str" and implement 10 lines of code generation.

Using << operator might be hard since they might be defined outside the class somewhere.

OpenMS/OpenMS#7265

Activity

  1. changed the title [-]add __repr__[/-] [+]Generate __str__ and __repr__[/+] on Dec 12, 2023
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions