Hi everyone,
A few things to be aware of, if you don't follow the GitLab activity:
- I've opened up two new issues, and would love to hear from others about them.
What this boils down to is that currently we allow a list to be passed for indicators, but since you cannot limit the length of a Python list, this means that the Field class will just blindly set the indicators to a list of arbitrary length. To fix this I'm proposing a new Named Tuple (similar to the new Subfield) that has only two slots, "first" and "second". This makes it obvious that you cannot set it to a list of any length. It also comes with a legacy handler that will attempt to coerce any lists of 2 elements to an Indicator tuple, and will raise a ValueError if it cannot.
Some concerns have been raised already on this one, since some flavours of MARC seem to allow non-numeric tags. However, it seems that these flavours also limit their length to three characters. This is not currently enforced in Pymarc.
If you have any thoughts on either of these two issues, please chime in!
Cheers,
-Andrew