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
{{ message }}
Repository navigation
Handle empty lists in strict email.utils.parseaddr #159350
The strict path in email.utils.parseaddr() handles list input by reading its first item without checking for an empty list. The non-strict path returns an empty address pair for the same input.
Reproducer, run with the interpreter built from the CPython checkout:
Activity
merwok commentedon Oct 20, 2026
Is this incorrect given the documentation of this function?
What is strict mode used for?
Should the function really handle this, or should the calling site check its data and not call the function on empty lists?