[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
Jonathan Hogg added the comment: While I agree that the documentation specifies that this function takes a list, the previous version did not require a list, just any object that is iterable. Unfortunately, this change is causing a break in real code (`xon.sh` in this case, which appears to

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
New submission from Jonathan Hogg: If `genericpath.commonprefix()` is called with a non-indexable argument, then the check for passing in a list of lists/tuples will raise an exception due to the `m[0]` test. -- components: Library (Lib) messages: 279386 nosy: jonathanhogg priority