def rename(self, new_name): """Rename the playlist.""" spotify.Error.maybe_raise( lib.sp_playlist_rename(self._sp_playlist, utils.to_char(new_name)))