[issue1757] Decimal hash depends on current context

2008-01-08 Thread Facundo Batista
Facundo Batista added the comment: Fixed in r59852. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1757] Decimal hash depends on current context

2008-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch for the trunk. Added file: http://bugs.python.org/file9101/issue1757.patch __ Tracker <[EMAIL PROTECTED]> __ __

[issue1757] Decimal hash depends on current context

2008-01-07 Thread Christian Heimes
Changes by Christian Heimes: -- priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1757] Decimal hash depends on current context

2008-01-07 Thread Facundo Batista
Changes by Facundo Batista: -- assignee: -> facundobatista nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing

[issue1757] Decimal hash depends on current context

2008-01-07 Thread Mark Dickinson
New submission from Mark Dickinson: The value of the Decimal hash() depends on the current context: >>> from decimal import * >>> x = Decimal("123456789.1") >>> hash(x) 1989332493 >>> getcontext().prec = 6 >>> hash(x) -2034270682 This has nasty consequences; e.g.: >>> s = set([x]) >>> x in s