Leader instead string

20 views
Skip to first unread message

Ed Summers

unread,
May 10, 2024, 4:16:03 PM5/10/24
to pym...@googlegroups.com
This is just a heads up that Jeremy Nelson has put up a pull request [1] to have Recorder.leader always return a Leader object instead of a str.

An instance of Leader [2] behaves like a string, but unlike a str it is mutable, and has a properties you can get and set without needing to remember their offset position.

I don’t think this change should cause any problems, but I wanted to get your feedback to let you know it’s being considered for the next release.

//Ed

[1] https://gitlab.com/pymarc/pymarc/-/merge_requests/209
[2] https://pymarc.readthedocs.io/en/latest/#module-pymarc.leader
Reply all
Reply to author
Forward
0 new messages