You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArtistList (#18216) is great :) but I realized that I had a few places in my old programs where I was doing e.g. ax.lines + ax.images + ..., which now breaks because there's no ArtistList.__add__. Instead one can do [*ax.lines, *ax.images, ...] but perhaps implementing ArtistList.__add__ may help with the transition?
Proposed Solution
Implement ArtistList.__add__ (which should only add ArtistLists and/or lists, and return plain lists). ArtistList.__iadd__ should probably also be implemented as throwing an exception (or emitting a deprecation warning), as direct modification of ArtistLists is currently being deprecated.
Additional context and prior art
N/A
Reacted by Michael Waskom, Tim Hoffmann, hannah and Thomas A Caswell
ArtistList.__iadd__ should probably also be implemented as throwing an exception (or emitting a deprecation warning), as direct modification of ArtistLists is currently being deprecated.
This already triggers a deprecation warning through ArtistList.insert.
Activity
QuLogic commentedon Apr 8, 2021
This already triggers a deprecation warning through
ArtistList.insert.Implement ArtistList.__[r]add__.
Implement ArtistList.__[r]add__.