New submission from Brett Cannon <br...@python.org>:

str.endswith() and str.startswith() only takes str or a tuple of str. It might 
be nice to make this str or an iterable of str (and that order must be kept so 
that a string isn't treated as an iterable of length-1 str).

----------
components: Interpreter Core
messages: 322887
nosy: brett.cannon
priority: low
severity: normal
status: open
title: Allow str.endswith and str.startswith to accept an iterable
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to