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
Currently there is no documented obvious way to remove existing NIX entities.
When looking through the code, one can see, that there are __delitem__ methods on the custom container classes, so items can be removed either by accessing these magic functions or by using the del keyword, but this is not obvious to the average user.
Is there a reason for not providing a remove or delete method on Container instances?
The text was updated successfully, but these errors were encountered:
I don't think there's any reason not to have them. I think we always relied on del container[objectname] since our container objects are meant to behave like dictionaries, but maybe a .remove(objectname) or .delete(objectname) would be more discoverable and convenient.
Currently there is no documented obvious way to remove existing NIX entities.
When looking through the code, one can see, that there are
__delitem__
methods on the custom container classes, so items can be removed either by accessing these magic functions or by using thedel
keyword, but this is not obvious to the average user.Is there a reason for not providing a
remove
ordelete
method onContainer
instances?The text was updated successfully, but these errors were encountered: