Message151713
I am closing this because map has even less chance of being made a collection method than join. Unlike join, map takes any positive number of iterables as args, not just one. 'Iterables' includes iterators, which intentionally need have no methods other than __iter__ and __next__.
If map were an attribute, it should be an attribute of 'function' (except that there is no one function class).
To abstract attributes, use get/setattr. Untested example:
def atcat(self, src, src_at, dst):
res = []
for col in getattr(self, src):
res += getattr(col, src_at)
setattr(self, dst, res) |
|
Date |
User |
Action |
Args |
2012-01-21 03:10:56 | terry.reedy | set | recipients:
+ terry.reedy, amaury.forgeotdarc, stutzbach, eric.araujo, dwt |
2012-01-21 03:10:55 | terry.reedy | set | messageid: <1327115455.85.0.854154712781.issue13804@psf.upfronthosting.co.za> |
2012-01-21 03:10:55 | terry.reedy | link | issue13804 messages |
2012-01-21 03:10:54 | terry.reedy | create | |
|