def __del__(self):
        if not hasattr(self, '_lib'):
            return
        if getattr(self, '_sp_playlist_callbacks', None) is None:
            return
        self._lib.sp_playlist_remove_callbacks(
            self._sp_playlist, self._sp_playlist_callbacks, ffi.NULL)
dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py/Playlist.__del__/original