PEP 313 - Roman numeral literals

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Wed Apr 2 19:43:15 EST 2003


sismex01 at hebmex.com wrote:
> No, the correct writing of 39 in roman numerals is "XXXIX",
> the proposed rule for only 3 of X, I or C in a single number
> is premature, or incomplete.
> 
> It should read "3 consecutive X, I or C digits".

You shouldn't need to explicitly state any such rule
if the rest of the rules are formulated properly.

The best way would be to specify a grammar in some
form, e.g. a regular expression.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list