In pymarc.field it should exist a function named del_subfield(code) that delete the subfield from the field.
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.
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.
Bug watches keep track of this bug in other bug trackers.
shouldn't this be implemented using the __delete__ descriptor? ( http:// docs.python. org/reference/ datamodel. html#descriptor s )
I have yet to fully read pymarc code, but this seems like a viable option for deleting objects.