summaryrefslogtreecommitdiff
path: root/test/regrtest_data/decimal_inference.py
blob: b47bc1ca8837509ffc50fd0f29c16a9f0c5e7645 (plain)
1
2
3
4
5
6
7
8
9
10
"""hum E1011 on .prec member is justifiable since Context instance are built
using setattr/locals :(

2007/02/17 update: .prec attribute is now detected by astroid :o)
"""
import decimal

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