Raymond Hettinger added the comment:

I don't see how the proposed patch would affect the result.  ISTM that the 
interning would have to happen after the template substitution and exec.  See 
the attached alternate patch.

That said, I'm not too concerned with the contents of _fields not being 
interned.  It isn't the performance sensitive part of the code.

----------
Added file: http://bugs.python.org/file41457/alternate_namedtuple_intern.patch

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

Reply via email to