[issue15342] os.path.join behavior
Pan Yongzhi fossi...@users.sourceforge.net added the comment: I know this is working as documented. But working as documented does not mean it is not a bug. I cannot deduce that it will append a separator if joining with an empty string from the documentation. Also, this behavior is implicit, and have to guess. Either the document or the behaivor have to be changed. I think it is not only me: http://stackoverflow.com/questions/1945920/os-path-join-python -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15342] os.path.join behavior
New submission from Pan Yongzhi fossi...@users.sourceforge.net: I am constructing a source directory argument to rsync. It has to end with slash due to rsync behavior. I use: os.path.join('/src/dir', os.path.sep) And run it and realized the source directory becomes '/'. Luckily it is not the destination. Why should join discard all previous path components if any component is an absoulute path? This is such a surprise and renders this function useless. -- messages: 165348 nosy: fossilet priority: normal severity: normal status: open title: os.path.join behavior type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom
Changes by Pan Yongzhi fossi...@users.sourceforge.net: -- nosy: +fossilet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15135] HOWTOs doesn't link to Idioms and Anti-Idioms article
New submission from Pan Yongzhi fossi...@users.sourceforge.net: In the py3k docs howtos table of contents, http://docs.python.org/py3k/howto/index.html, the link to the article Idioms and Anti-Idioms in Python is gone, but the article is still in the doc. It is at http://docs.python.org/py3k/howto/doanddont.html. Should it have a link at the howtos section? -- assignee: docs@python components: Documentation messages: 163396 nosy: docs@python, fossilet priority: normal severity: normal status: open title: HOWTOs doesn't link to Idioms and Anti-Idioms article type: enhancement versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com