PEP 313 - Roman numeral literals
Andrew Dalke
adalke at mindspring.com
Tue Apr 1 14:17:34 EST 2003
Mike Meyer:
> Any literal composed entirely of M, D, C, L, X, V and I characters
> that does not follow this format will raise a syntax error,
> because explicit is better than implicit.
Shouldn't that be a ValueError?
And you should probably add that roman(1000000) will
raise an OverflowError. But what does roman(0) do?
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list