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
- Add the missing `if part` guard to the suffix-comma parts[1:] loop:
"John Doe, Jr.,," leaked '' into suffix_list via
expand_suffix_delimiter('') returning [''], the same bug class this
branch fixes elsewhere (regression test added)
- Pin the setter-path filtering as intended behavior: whitespace-only
and empty tokens assigned via attributes, lists, or __setitem__ no
longer become *_list members
- Pin the lastname_pieces call site: ", John" leaves last_list empty
- Assert sibling lists for HumanName(',') so a relocated (not removed)
empty piece can't pass
- State the no-empty-pieces guarantee in parse_pieces()'s docstring and
broaden the release log entry to cover last_list/suffix_list and the
setter behavior
- Align the suffix-comma "final piece" comment with the no-comma site's
wording (the PR 216 replace_all missed this deeper-indented copy)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/release_log.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Release Log
7
7
- Fix a trailing suffix being silently dropped after an empty comma segment, e.g. ``"Doe, John,, Jr."`` losing the ``"Jr."``
8
8
- Remove ``__ne__``; Python 3 derives ``!=`` from ``__eq__`` automatically
9
9
- Change internal initials helper ``__process_initial__`` to ``_process_initial``: double-underscore-both-sides names are reserved for Python special methods; subclasses overriding the old name must rename their override
10
-
- Fix degenerate comma-only input (e.g. ``","``, ``"Doe,, Jr."``) leaving an empty-string member in ``first_list``
10
+
- Fix degenerate comma input (a bare ``","`` or an empty comma segment, e.g. ``"Doe,, Jr."``, ``"John Doe, Jr.,,"``) leaving an empty-string member in ``first_list``, ``last_list``, or ``suffix_list``; whitespace-only tokens assigned via the setters are dropped the same way
11
11
- Add ``non_first_name_prefixes`` to ``Constants``: a leading particle that is never a first name (e.g. ``"de Mesnil"``, ``"dos Santos"``) now parses as a surname with an empty first name, instead of treating the particle as the first name (closes #121)
12
12
- Add a first-class ``maiden`` field and ``maiden_delimiters`` to ``Constants``, so a delimiter (e.g. parenthesis) can be routed to ``maiden`` instead of ``nickname`` for alternate/maiden surnames, e.g. ``"Baker (Johnson), Jenny"`` (closes #22)
13
13
- Fix suffix-shaped parenthesized/quoted content (e.g. ``"(Ret)"``, ``"(MBA)"``) being misclassified as a nickname instead of a suffix (closes #111)
0 commit comments