[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

Nick Coghlan report at bugs.python.org
Sun Dec 3 08:40:49 EST 2017


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Prohibiting strings and bytes on the grounds of "Yes they're iterable, but are more likely intended as atomic here, so treat them as ambiguous and refuse to guess" would be fine. (Although I'll also note the classifier case will already fail on upload, since they won't be valid classifiers)

The only part I'm not OK with is upgrading a historically unenforced type restriction that only sometimes causes problems into an eagerly enforced one that breaks currently working code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19610>
_______________________________________


More information about the Python-bugs-list mailing list