Skip to content
This repository was archived by the owner on Sep 15, 2023. It is now read-only.
This repository was archived by the owner on Sep 15, 2023. It is now read-only.

Possible bug: __repr__ method of Run class overwrites .game and .category variables #13

Open

Description

@thecnoNSMB

.game and .category, before the object is printed, refer to ID strings. This behavior is inconsistent, especially when working between the interpreter and scripting.

Activity

  1. blha303 commented on Nov 15, 2018

    @blha303
    Owner

    You're right, the repr function shouldn't be modifying the data. I'll see what I can do, thanks

  2. thecnoNSMB commented on Nov 15, 2018

    @thecnoNSMB
    Author

    Just skimming over the code, it looks like the Leaderboard class has the same problem.

  3. blha303 commented on Nov 15, 2018

    @blha303
    Owner

    Yeah, I think I went with a method that solved a bug I had at the time, but turning data into a class instance definitely shouldn't be happening in repr.

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