From a23de873b8aa7cf703c2d911ae550b0941daf961 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 5 Jul 2009 06:51:23 -0400 Subject: [PATCH] mention urllib.parse.parse_qs --- strings.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/strings.html b/strings.html index 9b97cd0..71f2140 100644 --- a/strings.html +++ b/strings.html @@ -268,6 +268,10 @@ experience of years.
  • Finally, Python can turn that list-of-lists into a dictionary simply by passing it to the dict() function. +
    +

    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. +

    +

    Strings vs. Bytes