[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Fred .Flintstone
Fred .Flintstone added the comment: A programmer want to instruct the computer to do something, without having to care about how it works. Maybe the library could in the background convert the list to a tuple. Like: "foo".startswith(tuple(["food", "for",

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Fred .Flintstone
New submission from Fred .Flintstone : 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: Interp