From: Raymond Hettinger Date: Tue, 8 Jan 2008 02:02:05 +0000 (+0000) Subject: Expand comment. X-Git-Tag: v2.6a1~678 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=581671419f62ebc6155ff47929a531a6904f3c19;p=python Expand comment. --- diff --git a/Lib/collections.py b/Lib/collections.py index 099cdd62bd..a234b44902 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -34,7 +34,8 @@ def namedtuple(typename, field_names, verbose=False): """ - # Parse and validate the field names + # Parse and validate the field names. Validation serves two purposes, + # generating informative error messages and preventing template injection attacks. if isinstance(field_names, basestring): field_names = field_names.replace(',', ' ').split() # names separated by whitespace and/or commas field_names = tuple(field_names)