Serhiy Storchaka added the comment: I vote -1 too.
1. As was said, this doesn't work with all attribute names. 2. This adds circular dependency between operator and collections modules. 3. This increases memory consumption and startup time for small programs that don't use the collections module. 4. Performance. Creating a namedtuple is slower than creating a tuple, and many code is optimized for raw tuples. 5. This increases the complexity of attrgetter() implementation and can introduce new bugs. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com