[Python-checkins] python/dist/src/Doc/lib liburllib2.tex,1.9,1.10

niemeyer@users.sourceforge.net niemeyer@users.sourceforge.net
Sat, 07 Jun 2003 10:53:11 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv16400/Doc/lib

Modified Files:
	liburllib2.tex 
Log Message:
- urllib2.py now knows how to order proxy classes, so the user doesn't
  have to insert it in front of other classes, nor do dirty tricks like
  inserting a "dummy" HTTPHandler after a ProxyHandler when building an
  opener with proxy support.


Index: liburllib2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib2.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** liburllib2.tex	10 May 2003 07:40:56 -0000	1.9
--- liburllib2.tex	7 Jun 2003 17:53:07 -0000	1.10
***************
*** 57,60 ****
--- 57,65 ----
  If the Python installation has SSL support (\function{socket.ssl()}
  exists), \class{HTTPSHandler} will also be added.
+ 
+ Beginning in Python 2.3, a \class{BaseHandler} subclass may also change its
+ \var{handler_order} member variable to modify its position in the handlers
+ list. Besides \class{ProxyHandler}, which has \var{handler_order} of
+ \code{100}, all handlers currently have it set to \code{500}.
  \end{funcdesc}