From 94ac30e76fb2c6e0768298db07c5ec406a5fe241 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 5 Jul 2009 06:58:24 -0400 Subject: [PATCH] added FIXME for list comprehensions --- strings.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strings.html b/strings.html index 71f2140..4fdd03b 100644 --- a/strings.html +++ b/strings.html @@ -268,6 +268,8 @@ experience of years.
  • Finally, Python can turn that list-of-lists into a dictionary simply by passing it to the dict() function. +

    [FIXME - this is the first time we've seen a list comprehension. Add a forward or backward reference once we have a full section explaining them.] +

    The previous example looks a lot like parsing query parameters in a URL, but real-life URL parsing is actually more complicated than this. If you’re dealing with URL query parameters, you’re better off using the urllib.parse.parse_qs() function, which handles some non-obvious edge cases.