Eric V. Smith <e...@trueblade.com> added the comment:
I wouldn't have a problem with isinstance(obj, str) for a string check in strict mode. If you want to write something like a Path, convert it to a string yourself. That's exactly the behavior I'd like enforced by strict: only accept numbers and actual strings. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40825> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com