diff options
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 0df046d..e4c3344 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -2161,11 +2161,15 @@ class Context(object): """ def __init__(self, prec=None, rounding=None, - traps=None, flags=[], + traps=None, flags=None, _rounding_decision=None, Emin=None, Emax=None, capitals=None, _clamp=0, - _ignored_flags=[]): + _ignored_flags=None): + if flags is None: + flags = [] + if _ignored_flags is None: + _ignored_flags = [] if not isinstance(flags, dict): flags = dict([(s,s in flags) for s in _signals]) del s |