mention urllib.parse.parse_qs

This commit is contained in:
Mark Pilgrim
2009-07-05 06:51:23 -04:00
parent 1276cd7afe
commit a23de873b8
+4
View File
@@ -268,6 +268,10 @@ experience of years.</samp>
<li>Finally, Python can turn that list-of-lists into a dictionary simply by passing it to the <code>dict()</code> function.
</ol>
<blockquote class=note>
<p><span class=u>&#x261E;</span>The previous example looks a lot like parsing query parameters in a <abbr>URL</abbr>, but real-life <abbr>URL</abbr> parsing is actually more complicated than this. If you&#8217;re dealing with <abbr>URL</abbr> query parameters, you&#8217;re better off using the <a href=http://docs.python.org/3.1/library/urllib.parse.html#urllib.parse.parse_qs><code>urllib.parse.parse_qs()</code></a> function, which handles some non-obvious edge cases.
</blockquote>
<p class=a>&#x2042;
<h2 id=byte-arrays>Strings vs. Bytes</h2>