Terry J. Reedy <tjre...@udel.edu> added the comment:

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)

----------
nosy: +terry.reedy
resolution:  -> rejected
status: open -> closed
versions: +Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13804>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to