

@serialized
def on(self, event, listener, *user_args):
    if (event._sp_playlist_callbacks is None):
        self._sp_playlist_callbacks = _PlaylistCallbacks.get_struct()
        lib.sp_playlist_add_callbacks(self._sp_playlist, self._sp_playlist_callbacks, ffi.NULL)
    if (self not in self._session._emitters):
        self._session._emitters.append(self)
    super(Playlist, self).on(event, listener, *user_args)

dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py Playlist.on/VarMisuse@22/25 `self`->`event`