[Python-checkins] python/nondist/peps pep-0293.txt,1.2,1.3

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Tue, 09 Jul 2002 11:35:06 -0700


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv9051

Modified Files:
	pep-0293.txt 
Log Message:
Incorporate the result of the XML-SIG discussion:
stream readers/writers need a changeable errors attribute.


Index: pep-0293.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0293.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pep-0293.txt	19 Jun 2002 11:12:50 -0000	1.2
--- pep-0293.txt	9 Jul 2002 18:35:04 -0000	1.3
***************
*** 337,340 ****
--- 337,349 ----
      changes to many C functions, this approach has been rejected.
  
+     For stream readers/writers the errors attribute must be changeable
+     to be able to switch between different error handling methods
+     during the lifetime of the stream reader/writer. This is currently
+     the case for codecs.StreamReader and codecs.StreamWriter and
+     all their subclasses. All core codecs and probably most of the
+     third party codecs (e.g. JapaneseCodecs) derive their stream
+     readers/writers from these classes so this already works,
+     but the attribute errors should be documented as a requirement.
+ 
  
  Implementation Notes