def __repr__(self): r'''Gets interpreter representation of context. :: >>> context Context() Returns string. ''' from abjad.tools import scoretools if all(isinstance(x, scoretools.Leaf) for x in self): return Container.__repr__(self) return self._get_abbreviated_string_format()
def __repr__(self): r'''Gets interpreter representation of context. :: >>> context Context() Returns string. ''' from abjad.tools import scoretools if all(isinstance(x, scoretools.Leaf) for x in self): return Container.__repr__(self) return self._get_abbreviated_string_format()
def __repr__(self): r'''Gets interpreter representation of context. :: >>> context = scoretools.Context( ... name='MeterVoice', ... context_name='TimeSignatureContext', ... ) >>> repr(context) 'Context()' Returns string. ''' from abjad.tools import scoretools if all(isinstance(x, scoretools.Leaf) for x in self): return Container.__repr__(self) return self._get_abbreviated_string_format()
def __repr__(self): r'''Gets interpreter representation of context. :: >>> context = scoretools.Context( ... name='MeterVoice', ... context_name='TimeSignatureContext', ... ) >>> repr(context) 'Context()' Returns string. ''' from abjad.tools import scoretools if all(isinstance(x, scoretools.Leaf) for x in self): return Container.__repr__(self) return self._get_abbreviated_string_format()