[Python-projects] E1101 for decimal.getcontext().prec

MATSUI Tetsushi VED03370 at nifty.ne.jp
Wed Nov 15 04:08:59 CET 2006


Hello,


I encountered strange E1101s for decimal.getcontext().prec.
Here is a minimal example.


The following code:

import decimal

decimal.getcontext().prec = 200
print decimal.getcontext().prec

results, of cource, 200 on the stdout.


When pylint runs against the code, it outputs:

E:  4: Instance of 'Context' has no 'prec' member
E:  4: Instance of 'Context' has no 'prec' member

You may notice that the error occured on the print line only and
surprisingly twice.


I'm using
% pylint --version
pylint 0.12.1,
astng 0.16.1, common 0.19.2
Python 2.4.4 (#1, Nov  6 2006, 12:40:30)
[GCC 4.1.1 (Gentoo 4.1.1-r1)]


Best wishes,
-- 
MATSUI Fe2+ Tetsushi


More information about the Python-Projects mailing list