~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Doc/library/codecs.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
   Codec Interface). The functions/methods are expected to work in a stateless
52
52
   mode.
53
53
 
54
 
   *incrementalencoder* and *incrementalencoder*: These have to be factory
 
54
   *incrementalencoder* and *incrementaldecoder*: These have to be factory
55
55
   functions providing the following interface:
56
56
 
57
57
   ``factory(errors='strict')``
58
58
 
59
59
   The factory functions must return objects providing the interfaces defined by
60
 
   the base classes :class:`IncrementalEncoder` and :class:`IncrementalEncoder`,
 
60
   the base classes :class:`IncrementalEncoder` and :class:`IncrementalDecoder`,
61
61
   respectively. Incremental codecs can maintain state.
62
62
 
63
63
   *streamreader* and *streamwriter*: These have to be factory functions providing
477
477
 
478
478
   The *errors* argument will be assigned to an attribute of the same name.
479
479
   Assigning to this attribute makes it possible to switch between different error
480
 
   handling strategies during the lifetime of the :class:`IncrementalEncoder`
 
480
   handling strategies during the lifetime of the :class:`IncrementalDecoder`
481
481
   object.
482
482
 
483
483
   The set of allowed values for the *errors* argument can be extended with