Armin Rigo <arigo@tunes.org> writes: > >>> commonprefix(['/home/users/arigo', '/home/users/alal']) > '/home/users/a' > > What is the use for such a thing ?? I suppose you could use it for something like filename completion as found in many unix shells. That's perhaps the reason why it's in os.path and not in string. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://www.mapit.de/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4