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
- Correct release log: the unparsable guard broke in 2013 (v0.2.9), not
in the earliest releases (2011-2013 releases had a working attribute)
- Pin multiple empty comma segments ("Doe, John,, Jr.,, III") so a
break-instead-of-continue regression can't pass the single-empty test
- Pin hash interop with plain strings ("john smith" in {HumanName(...)}),
which depends on hashing str(self).lower() specifically
- Tighten the "final piece" comments in parse_full_name and document
are_suffixes()'s vacuous-truth contract that the piece loops rely on
- Document in usage.rst that empty/garbage input parses to an all-empty
name, checked via len(name) == 0
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
@@ -1,7 +1,7 @@
1
1
Release Log
2
2
===========
3
3
* 1.3.0 - Unreleased
4
-
- Remove the vestigial ``unparsable`` attribute: the guard that was meant to set it was unreachable, so it has reported ``False`` for every parsed name since the earliest releases
4
+
- Remove the vestigial ``unparsable`` attribute: the guard that was meant to set it has been unreachable since 2013 (v0.2.9), so it has reported ``False`` for every parsed name for over a decade; check ``len(name) == 0`` to detect an empty parse
5
5
- Fix ``__hash__`` to lowercase the name like ``__eq__`` does, so equal ``HumanName`` instances hash equal and behave correctly in sets and dicts
6
6
- Fix ``initials()`` emitting a stray empty initial (e.g. ``"J. . V."``) -- or raising ``TypeError`` when ``empty_attribute_default`` is ``None`` -- for name parts with no initialable words, e.g. a prefix-only middle name like ``"de la"``
7
7
- Fix a trailing suffix being silently dropped after an empty comma segment, e.g. ``"Doe, John,, Jr."`` losing the ``"Jr."``
0 commit comments