[Python-ideas] Consider making Decimal's context use PEP 567

Nick Coghlan ncoghlan at gmail.com
Wed Feb 7 19:08:49 EST 2018


On 8 February 2018 at 08:36, Neil Girdhar <mistersheik at gmail.com> wrote:
> Wow, that's awesome!  I didn't notice that when I checked.  It seemed like
> context had to be passed in.  If it were me, I would probably deprecate
> those context=None arguments now that we have such a clean solution.

The context=None feature is there so that developers can write pure
Decimal operations if they choose to do so, rather than always
depending on implicit dynamic state.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list