[Python-Dev] Decimal - context manipulation (original) (raw)
Paul Moore pf_moore at yahoo.co.uk
Wed Apr 21 03:56:02 EDT 2004
- Previous message: [Python-Dev] Re: python/nondist/peps pep-0000.txt, 1.270, 1.271 pep-0329.txt, 1.3, 1.4
- Next message: [Python-Dev] Re: Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
One thing I couldn't find an obvious way of doing with Decimal is to obtain a copy of the current context, with a different (say) precision. The Context constructor defaults from DefaultContext rather than from the current context, and I can't see a way of modifying the precision of a Context object (is the "prec" attribute intended to be publicly writeable?) I assume that copy.copy works to copy a context, although maybe an explicit copy method would be useful?
Paul.
This signature intentionally left blank
- Previous message: [Python-Dev] Re: python/nondist/peps pep-0000.txt, 1.270, 1.271 pep-0329.txt, 1.3, 1.4
- Next message: [Python-Dev] Re: Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]