Mark Dickinson added the comment: I don't think this is a good idea. Remember that Python classes are themselves mutable objects, so if a library that you happen to import creates a "Point" namedtuple with fields "x" and "y" and class-level modifications (extra attributes, patched-in methods), any namedtuple you created with fields "x" and "y" would automatically pick up those modifications. (And conversely, by modifying *your* class, you might adversely affect the behaviour of the library's class.)
---------- nosy: +mark.dickinson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22562> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com