[Python-checkins] r87930 - python/branches/py3k-cdecimal/Modules/cdecimal/cdecimal.c
stefan.krah
python-checkins at python.org
Tue Jan 11 15:08:25 CET 2011
Author: stefan.krah
Date: Tue Jan 11 15:08:25 2011
New Revision: 87930
Log:
Fix precision range error message.
Modified:
python/branches/py3k-cdecimal/Modules/cdecimal/cdecimal.c
Modified: python/branches/py3k-cdecimal/Modules/cdecimal/cdecimal.c
==============================================================================
--- python/branches/py3k-cdecimal/Modules/cdecimal/cdecimal.c (original)
+++ python/branches/py3k-cdecimal/Modules/cdecimal/cdecimal.c Tue Jan 11 15:08:25 2011
@@ -799,7 +799,7 @@
ctx = CtxAddr(self);
if (!mpd_qsetprec(ctx, x)) {
return value_error_int(
- "valid range for prec is [0, MAX_PREC].");
+ "valid range for prec is [1, MAX_PREC].");
}
return 0;
More information about the Python-checkins
mailing list