CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 17:02:48 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
set-cookie: MOIN_SESSION_443_ROOT_moin=bd6df43cac7df819c5495fecce029c869477ce56; Expires=Wed, 23-Jul-2025 18:02:00 GMT; Max-Age=3600; Secure; Path=/
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
StreamReader - Python Wiki
As of Python2.5, StreamReader wraps (contains) a stream. It defines read and other respective methods to read the data from the stream and "decode" them. The class exposes all other methods of the stream instance.
Pseudocode of the codecs.StreamReader definition:
The decode method normally converts values of type str to unicode.
Codec modules will attach the decode method to the class definition derived from StreamReader during the initialization. An excerpt from encodings.utf_8.StreamReader:
See also: StreamWriter, StreamReaderWriter, StreamRecoder.
StreamReader (last edited 2008-11-15 14:00:34 by localhost)
Unable to edit the page? See the FrontPage for instructions.