[Python-checkins] python/dist/src/Doc/lib liburllib2.tex, 1.22, 1.23

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Thu Jul 14 08:40:49 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25167/Doc/lib

Modified Files:
	liburllib2.tex 
Log Message:
RFE [ 1216944 ] Add Error Code Dictionary to urllib2



Index: liburllib2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib2.tex,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- liburllib2.tex	13 Apr 2005 01:08:23 -0000	1.22
+++ liburllib2.tex	14 Jul 2005 06:40:47 -0000	1.23
@@ -71,6 +71,15 @@
 \end{funcdesc}
 
 
+The following attribute is defined:
+
+\begin{datadesc}{httpresponses}
+A mapping between HTTP status codes and the W3C names.
+
+Example: \code{urllib2.httpresponses[404]} is \code{'Not Found'}.
+\versionadded{2.5}
+\end{datadesc}
+
 The following exceptions are raised as appropriate:
 
 \begin{excdesc}{URLError}



More information about the Python-checkins mailing list