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/2003-January/032233.html below:

longest common prefix of two strings

[Python-Dev] String method: longest common prefix of two strings [Python-Dev] String method: longest common prefix of two stringsNeal Norwitz neal@metaslash.com
Sun, 19 Jan 2003 10:02:23 -0500
On Sun, Jan 19, 2003 at 12:20:03PM +0100, kent@lysator.liu.se wrote:
> I'd like to get some feedback on a new string method which might
> be useful: getting the longest common prefix of two strings.

os.path.commonprefix(sequence_of_strings) does this.

Neal



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