[Python-ideas] Re: commonprefix

2024-06-17 Thread Rob Cliffe via Python-ideas
The os.path.commonprefix function basically returns the common initial characters (if any) shared by a sequence of strings, e.g.     os.path.commonprefix(("Python is great!", "Python is not bad", "Python helps")) # returns "Python " The following was wrong.  os.path.commonprefix uses min and ma

[Python-ideas] Re: commonprefix

2024-06-17 Thread Rob Cliffe via Python-ideas
On 13/06/2024 02:20, Rob Cliffe wrote: The os.path.commonprefix function basically returns the common initial characters (if any) shared by a sequence of strings, e.g.     os.path.commonprefix(("Python is great!", "Python is not bad", "Python helps")) # returns "Python " The following was wr