[issue35897] Support list as argument to .startswith()
Fred .Flintstone
report at bugs.python.org
Tue Feb 5 03:36:20 EST 2019
New submission from Fred .Flintstone <eldmannen at gmail.com>:
The "".startswith() method accepts a string or a tuple as a parameter.
Consider adding support for list as parameter.
Example:
"foo".startswith(["food", "for", "fast"])
----------
components: Interpreter Core
messages: 334856
nosy: Fred .Flintstone
priority: normal
severity: normal
status: open
title: Support list as argument to .startswith()
type: enhancement
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35897>
_______________________________________
More information about the Python-bugs-list
mailing list