⇤ ← Revision 1 as of 2007-04-02 21:03:15
661
Comment:
|
685
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
StreamWriter wraps (contains) a stream. Its {{{write}}} overrides will "encode" the data and pass the result to the stream. |
StreamWriter wraps (contains) a stream. It overrides {{{write}}} and other respective methods to "encode" the data and pass the result to the stream. |
StreamWriter wraps (contains) a stream. It overrides write and other respective methods to "encode" the data and pass the result to the stream.
Pseudocode of the codecs.StreamWriter definition in Python2.5:
The StreamWriter.encode method is attached to the derived codec-specific class definitions at the time of the codec initialization. An excerpt from encodings.utf_8.StreamWriter: