Message314883
Thanks Christian. I thought of join precisely because it performs conceptually the same function as with str, so the parallel between ''.join(), [].join() and ().join() looked more obvious. Also there is os.path.join and PurePath.joinpath, so the verb seemed well-established. As for shared method names, index and count are present both in sequences and str - although it is true that these do return the same kind of object in any cases.
I'm not saying your points aren't valid, though. Your proposed way with extend is I guess about the same as list(itertools.chain(...)), which could be considered to be enough. I just feel that is not particularly convenient, especially for newer developers, which will probably gravitate towards sum(...) more than itertools or a nested generator expression, but I may be wrong. |
|
Date |
User |
Action |
Args |
2018-04-03 15:06:34 | Javier Dehesa | set | recipients:
+ Javier Dehesa, christian.heimes |
2018-04-03 15:06:33 | Javier Dehesa | set | messageid: <1522767993.99.0.467229070634.issue33214@psf.upfronthosting.co.za> |
2018-04-03 15:06:33 | Javier Dehesa | link | issue33214 messages |
2018-04-03 15:06:33 | Javier Dehesa | create | |
|