[Python-checkins] python/nondist/peps pep-0008.txt,1.16,1.17

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Mon, 07 Oct 2002 06:40:44 -0700


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

Modified Files:
	pep-0008.txt 
Log Message:
Add ruling about source code encodings.


Index: pep-0008.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0008.txt,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** pep-0008.txt	22 Jun 2002 02:14:49 -0000	1.16
--- pep-0008.txt	7 Oct 2002 13:40:41 -0000	1.17
***************
*** 125,128 ****
--- 125,139 ----
      pages of related sections of your file.
  
+   Encodings (PEP 263)
+ 
+     Code in the core Python distribution should aways use the ASCII or
+     Latin-1 encoding (a.k.a. ISO-8859-1).  Files using ASCII should
+     not have a coding cookie.  Latin-1 should only be used when a
+     comment or docstring needs to mention an author name that requires
+     Latin-1; otherwise, using \x escapes is the preferred way to
+     include non-ASCII data in string literals.  An exception is made
+     for those files that are part of the test suite for the code
+     implementing PEP 263.
+ 
  
  Imports