[Python-checkins] CVS: python/dist/src/Doc/lib libcodecs.tex,1.5,1.6

M.-A. Lemburg lemburg@users.sourceforge.net
2001年9月19日 04:33:34 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv27633/Doc/lib
Modified Files:
	libcodecs.tex 
Log Message:
Docs and News item for the codecs.py additions.
Index: libcodecs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcodecs.tex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** libcodecs.tex	2001年01月22日 20:17:54	1.5
--- libcodecs.tex	2001年09月19日 11:33:31	1.6
***************
*** 64,67 ****
--- 64,99 ----
 \end{funcdesc}
 
+ To simply access to the various codecs, the module provides these
+ additional functions which use \function{lookup()} for the codec
+ lookup:
+ 
+ \begin{funcdesc}{getencoder}{encoding}
+ Lookup up the codec for the given encoding and return its encoder
+ function.
+ 
+ Raises a \exception{LookupError} in case the encoding cannot be found.
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{getdecoder}{encoding}
+ Lookup up the codec for the given encoding and return its decoder
+ function.
+ 
+ Raises a \exception{LookupError} in case the encoding cannot be found.
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{getreader}{encoding}
+ Lookup up the codec for the given encoding and return its StreamReader
+ class or factory function.
+ 
+ Raises a \exception{LookupError} in case the encoding cannot be found.
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{getwriter}{encoding}
+ Lookup up the codec for the given encoding and return its StreamWriter
+ class or factory function.
+ 
+ Raises a \exception{LookupError} in case the encoding cannot be found.
+ \end{funcdesc}
+ 
 To simplify working with encoded files or stream, the module
 also defines these utility functions:

AltStyle によって変換されたページ (->オリジナル) /