New submission from Łukasz Balcerzak:

In projects I work on I constantly end up creating something like:

    abspath = lambda *p: os.path.abspath(os.path.join(*p))

This could be easily avoided by allowing abspath to accept multiple arguments. 
This would be:

1. Backward compatibile (calls with single argument would remain the same)
2. Very simple to fix (just join given path parts before doing anything else)

I can document this, do most of the coding and test on Mac and linux, however 
would not be able to test on other platforms.

Let me know if this is acceptable. Attaching a diff with posixpath update.

----------
components: Library (Lib)
files: abspath-with-joins.diff
keywords: patch
messages: 191203
nosy: Łukasz.Balcerzak
priority: normal
severity: normal
status: open
title: os.path.abspath should accept multiple path parts and join them
type: enhancement
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file30600/abspath-with-joins.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18222>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to