Skip to content

Conversation

@reinecke
Copy link
Collaborator

It appears the __str__ and __repr__ methods may have been copy/pasted from Clip by accident in the C++ port, printing in the python REPL would result in a traceback like:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ereinecke/.venv/lib/python3.8/site-packages/opentimelineio/schema/marker.py", line 25, in __repr__
    repr(self.media_reference),
AttributeError: 'opentimelineio._otio.Marker' object has no attribute 'media_reference'

Restored implementations from the pre-C++ port version and added unitests to prevent this kind of error in the future.

@ssteinbach ssteinbach added this to the Public Beta 13 milestone Jul 7, 2020
@ssteinbach ssteinbach added the bug A problem, flaw, or broken functionality. label Jul 7, 2020
@ssteinbach ssteinbach merged commit 82ceef6 into AcademySoftwareFoundation:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A problem, flaw, or broken functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants