Ivan Levkivskyi <levkivs...@gmail.com> added the comment:
The problem with this solution is that it may brea (relatively common) use case of tuple valued fields, e.g.: >>> tuple(*[x for x in a]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: tuple expected at most 1 arguments, got 2 Essentially, named tuples are all subclasses of `tuple` but they override __new__ in an incompatible way. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34363> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com