FAQ

While you can be forgiven for not have guessed, os.path is the place to
look:
import os.path
a = "abcdefghijklmnopqrstuvwxyz"
b = "abcdefghijklmnopBHLHT"
print os.path.commonprefix([a,b])

-Scott David Daniels
Scott.Daniels at Acm.Org
Certainly not where I was expecting it, Thanks

Ravi

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 27 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 2, '03 at 9:39p
activeAug 22, '03 at 7:42a
posts27
users12
websitepython.org

People

Translate

site design / logo © 2022 Grokbase