[Python-ideas] Accept list in os.path.join
Jonas Wielicki
j.wielicki at sotecware.net
Tue Jul 29 13:37:54 CEST 2014
On 29.07.2014 10:05, Todd wrote:
> In the case where multiple arguments are used and one or more of those
> arguments are a list, I think the best solution would be to raise an
> exception, since this would avoid corner cases and be less likely to
> silently propagate bugs. However, I am not set on that, so if others
> prefer it join all the strings in all the lists that would be okay too.
>From the implementation point of view, I have yet to see a duck-typing
way to distinguish a list (or any other iterable) of strings from a string.
regards,
jwi
More information about the Python-ideas
mailing list