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

goodger@users.sourceforge.net goodger@users.sourceforge.net
Fri, 04 Apr 2003 13:20:03 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv747

Modified Files:
	pep-0313.txt 
Log Message:
update from Mike Meyer

Index: pep-0313.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0313.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pep-0313.txt	1 Apr 2003 17:41:34 -0000	1.2
--- pep-0313.txt	4 Apr 2003 21:19:59 -0000	1.3
***************
*** 14,21 ****
  Abstract
  
!     This PEP proposes adding Roman numerals as a literal type.  It
!     also proposes the new built-in function "roman", which converts an
!     object to an integer, then converts the integer to a string that
!     is the Roman numeral literal equivalent to the integer.
  
  
--- 14,22 ----
  Abstract
  
!     This PEP (also known as PEP CCCXIII) proposes adding Roman
!     numerals as a literal type.  It also proposes the new built-in
!     function "roman", which converts an object to an integer, then
!     converts the integer to a string that is the Roman numeral literal
!     equivalent to the integer.
  
  
***************
*** 39,48 ****
  
      1.  Except as noted below, they must appear in the order M, D, C,
!     L, X, V then I.  Each occurence of each character adds 1000, 500,
      100, 50, 10, 5 and 1 to the value of the literal, respectively.
  
      2.  Only one D, V or L may appear in any given literal.
  
!     3.  At most three Is, Xs and Cs may appear in any given literal.
  
      4.  A single I may appear immediately to the left of the single V,
--- 40,50 ----
  
      1.  Except as noted below, they must appear in the order M, D, C,
!     L, X, V then I.  Each occurrence of each character adds 1000, 500,
      100, 50, 10, 5 and 1 to the value of the literal, respectively.
  
      2.  Only one D, V or L may appear in any given literal.
  
!     3.  At most three each of Is, Xs and Cs may appear consecutively
!     in any given literal.
  
      4.  A single I may appear immediately to the left of the single V,
***************
*** 63,74 ****
  
  
! Builtin "roman" Function
  
!     The new builtin function "roman" will aide the translation from
      integers to Roman numeral literals.  It will accept a single
      object as an argument, and return a string containing the literal
      of the same value.  If the argument is not an integer or a
      rational (see PEP 239 [1]) it will passed through the existing
!     builtin "int" to obtain the value.  This may cause a loss of
      information if the object was a float.  If the object is a
      rational, then the result will be formatted as a rational literal
--- 65,76 ----
  
  
! Built-In "roman" Function
  
!     The new built-in function "roman" will aide the translation from
      integers to Roman numeral literals.  It will accept a single
      object as an argument, and return a string containing the literal
      of the same value.  If the argument is not an integer or a
      rational (see PEP 239 [1]) it will passed through the existing
!     built-in "int" to obtain the value.  This may cause a loss of
      information if the object was a float.  If the object is a
      rational, then the result will be formatted as a rational literal
***************
*** 77,81 ****
  
  
! Compatability Issues
  
      No new keywords are introduced by this proposal.  Programs that
--- 79,83 ----
  
  
! Compatibility Issues
  
      No new keywords are introduced by this proposal.  Programs that