We should be able to delete subfields

Bug #348617 reported by Nahuel ANGELINETTI
6
Affects Status Importance Assigned to Milestone
pymarc
New
Undecided
Unassigned

Bug Description

In pymarc.field it should exist a function named del_subfield(code) that delete the subfield from the field.

Revision history for this message
9johnny (s.j.) wrote :

shouldn't this be implemented using the __delete__ descriptor? ( http://docs.python.org/reference/datamodel.html#descriptors )
I have yet to fully read pymarc code, but this seems like a viable option for deleting objects.

Revision history for this message
9johnny (s.j.) wrote :

err, scratch that, the docs got me there :-). It's used for deleting attributes of objects, it may be useful, but the bug isn't directly linked to the usage of __delete__.
++J

---------
Every solution breeds new problems.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.