[issue11378] os.path.join when second starts with '/' (linux/unix)

2011-03-02 Thread Alessandro Forghieri
New submission from Alessandro Forghieri : Observed behavior: >>>>>>os.path.join('/foo/bar', '/baz') '/baz' Expected behavior: should return '/foo/bar/baz' or (suboptimally) raise an exception. Why: Observed beahvior violates the min

[issue11378] os.path.join when second argument starts with '/' (linux/unix)

2011-03-02 Thread Alessandro Forghieri
Changes by Alessandro Forghieri : -- title: os.path.join when second starts with '/' (linux/unix) -> os.path.join when second argument starts with '/' (linux/unix) ___ Python tracker <http://

[issue11378] os.path.join when second argument starts with '/' (linux/unix)

2011-03-02 Thread Alessandro Forghieri
Alessandro Forghieri added the comment: Documented it is, and change it may not, but I am still unconvinced. Anything that joins "should" (IMHO) preserve the leading stuff - this one throws it away - sometimes. Also I do believe a number of other languages take a different stanc