
May 18, 2005
2:38 a.m.
On May 17, 2005, at 10:36 PM, Guido van Rossum wrote:
On 5/17/05, Raymond Hettinger <python@rcn.com> wrote:
I think you're missing a decimal.setcontext(newcontext) before the yield..
Right.
I don't see a call to setcontext() in the sin() example in the library reference. Is that document wrong? I thought that simply modifying the parameters of the current context would be sufficient.
The library reference isn't modifying the parameters in a *copy* of the current context. -bob