A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030949.html below:

[Python-Dev] os.path.commonprefix

[Python-Dev] os.path.commonprefix [Python-Dev] os.path.commonprefixBernhard Herzog bh@intevation.de
07 Dec 2002 17:32:32 +0100
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