Package lemon :: Package external :: Package docutils :: Package parsers :: Package rst :: Module roman
[show private | hide private]
[frames | no frames]

Module lemon.external.docutils.parsers.rst.roman

Convert to and from Roman numerals

Exceptions
InvalidRomanNumeralError  
NotIntegerError  
OutOfRangeError  
RomanError  

Function Summary
  fromRoman(s)
convert Roman numeral to integer...
  toRoman(n)
convert integer to Roman numeral...

Variable Summary
str __author__ = 'Mark Pilgrim (f8dy@diveintopython.org)'
str __copyright__ = 'Copyright (c) 2001 Mark Pilgrim\n\nThis...
str __date__ = '8 August 2001'
str __version__ = '1.4'
tuple romanNumeralMap = (('M', 1000), ('CM', 900), ('D', 500),...
SRE_Pattern romanNumeralPattern = ^M{,4}(CM|CD|D?C{,3})(XC|XL|L?X{,3...

Function Details

fromRoman(s)

convert Roman numeral to integer

toRoman(n)

convert integer to Roman numeral

Variable Details

__author__

Type:
str
Value:
'Mark Pilgrim (f8dy@diveintopython.org)'                               

__copyright__

Type:
str
Value:
'''Copyright (c) 2001 Mark Pilgrim

This program is part of "Dive Into Python", a free Python tutorial for
experienced programmers.  Visit http://diveintopython.org/ for the
latest version.

This program is free software; you can redistribute it and/or modify
it under the terms of the Python 2.1.1 license, available at
...                                                                    

__date__

Type:
str
Value:
'8 August 2001'                                                        

__version__

Type:
str
Value:
'1.4'                                                                  

romanNumeralMap

Type:
tuple
Value:
(('M', 1000),
 ('CM', 900),
 ('D', 500),
 ('CD', 400),
 ('C', 100),
 ('XC', 90),
 ('L', 50),
 ('XL', 40),
...                                                                    

romanNumeralPattern

Type:
SRE_Pattern
Value:
^M{,4}(CM|CD|D?C{,3})(XC|XL|L?X{,3})(IX|IV|V?I{,3})$                   

Generated by Epydoc 2.0 on Mon Nov 10 15:08:02 2003 http://epydoc.sf.net