This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients
Date 2007-05-20.18:00:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
collections.NamedTuple is using an assert to prevent exec attacks:

assert ''.join(field_names).replace('_', '').isalpha()     
# protect against exec attack
s

asserts are ignored when Python code is run with the -O or -OO flag. I suggest to replace them.

History
Date User Action Args
2007-08-23 14:53:58adminlinkissue1722239 messages
2007-08-23 14:53:58admincreate