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/2008-December/084640.html below:

[Python-Dev] A wart which should have been repaired in 3.0?

[Python-Dev] A wart which should have been repaired in 3.0? [Python-Dev] A wart which should have been repaired in 3.0?skip at pobox.com skip at pobox.com
Tue Dec 30 13:14:24 CET 2008
Paul demonstrates the shortcoming of commonprefix:

    >>> os.path.commonprefix(["foo\\bar\\baz", "foo/bar/boink"])
    'foo'

With the patch in issue4755:

    >>> import ntpath
    >>> ntpath.commonpathprefix(["foo\\bar\\baz", "foo/bar/boink"])
    'foo\\bar'

Ta da ...

Skip
More information about the Python-Dev mailing list

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