[issue3974] collections.namedtuple uses exec to create new classes

2011-12-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue3974] collections.namedtuple uses exec to create new classes

2011-11-11 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue3974] collections.namedtuple uses exec to create new classes

2011-11-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue3974] collections.namedtuple uses exec to create new classes

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue3974] collections.namedtuple uses exec to create new classes

2011-05-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, exec is unholy:) For embedding Python into a console game we have removed the python compiler. exec and eval don't work. This saves space and is also a security feature. I had to modify the collections module so that namedtuple() just returns

[issue3974] collections.namedtuple uses exec to create new classes

2008-10-01 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: The current version is clear and maintainable. There is nothing unholy about using exec. Earlier versions used other approaches and they proved unnecessarily complex and had unexpected problems. It is a key feature for named tuples that

[issue3974] collections.namedtuple uses exec to create new classes

2008-10-01 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Have you run benchmarks of both versions? It seems the benefit of the original version is that it's faster, thanks to hardcoding critical methods. -- nosy: +pitrou ___ Python tracker <[EMAIL PROTEC

[issue3974] collections.namedtuple uses exec to create new classes

2008-09-26 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: -- assignee: -> rhettinger nosy: +rhettinger priority: -> normal type: -> feature request versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> _

[issue3974] collections.namedtuple uses exec to create new classes

2008-09-26 Thread Jens Kadenbach
New submission from Jens Kadenbach <[EMAIL PROTECTED]>: Rewrite of the namedtuple implementation to avoid the use of exec for class generation.  The new code uses a custom class dictionary and the builtin type to create new classes dynamically. -- components: Library (Lib) files: new_nam