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

2011-03-02 Thread Eric Smith
Eric Smith added the comment: I appreciate that you're unconvinced of its usefulness, but you can be assured that some of us do find it a useful and desirable behavior. And Python isn't the only system that works this way, emacs does the same thing when you enter filenames. -- nosy:

[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 stance (I am no pit

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

2011-03-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: And the current behaviour is useful; for example, the absolute path of a file name can be computed with os.path.join(os.getcwd(), filename). This works with both absolute and relative paths. os.path.join() won't change; you probably should consider anoth

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

2011-03-02 Thread Daniel Urban
Daniel Urban added the comment: It does exactly what is documented: "If any component is an absolute path, all previous components (on Windows, including the previous drive letter, if there was one) are thrown away, and joining continues." (http://docs.python.org/dev/py3k/library/os.path#os.p

[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