Glenn Linderman <v+pyt...@g.nevcal.com> added the comment:
Or is text.startswith(('day', 'month', 'year'), 8, 12) the same as text[8:12] in ('day', 'month', 'year') What happens if the text doesn't have as many as 12 characters? What if it doesn't have more than 8 characters? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37490> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com