Skip to content

Comparison of Timecodes with different framerates is always False #62

@nickswalker

Description

@nickswalker
timecode = Timecode(30, "00:00:00;00")
other_framerate = Timecode(60, "00:00:00;00")
print(other_framerate < timecode) # False
print(other_framerate > timecode) # False
print(other_framerate == timecode) # False

This may be surprising behavior, as users may expect the comparisons (if implemented and returning values) to obey trichotomy. I think it would be better to force users to define their own comparison in this case by raising an exception.

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