This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients amaury.forgeotdarc, dwt, eric.araujo, stutzbach, terry.reedy
Date 2012-01-21.03:10:54
SpamBayes Score 0.00020412529
Marked as misclassified No
Message-id <1327115455.85.0.854154712781.issue13804@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2012-01-21 03:10:56terry.reedysetrecipients: + terry.reedy, amaury.forgeotdarc, stutzbach, eric.araujo, dwt
2012-01-21 03:10:55terry.reedysetmessageid: <1327115455.85.0.854154712781.issue13804@psf.upfronthosting.co.za>
2012-01-21 03:10:55terry.reedylinkissue13804 messages
2012-01-21 03:10:54terry.reedycreate