[Python-ideas] os.path.commonprefix: Yes that old chestnut.

random832 at fastmail.us random832 at fastmail.us
Tue Mar 24 02:54:29 CET 2015


On Mon, Mar 23, 2015, at 18:48, Paul Moore wrote:
> The type of the return value should
> be a concrete type - probably type(p1)?

I'd argue it should be the common supertype, so a PurePosixPath if both
are posix and one is pure, a Path or PurePath if one is windows and the
other is posix.


More information about the Python-ideas mailing list