From 581671419f62ebc6155ff47929a531a6904f3c19 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 8 Jan 2008 02:02:05 +0000 Subject: Expand comment. --- Lib/collections.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/collections.py b/Lib/collections.py index 099cdd6..a234b44 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) -- cgit v0.12