Re: [Python-ideas] incremental hashing in __hash__

2016-12-31 Thread jab
On Sat, Dec 31, 2016 at 7:17 AM, Nick Coghlan wrote: > On 31 December 2016 at 15:13, wrote: > >> On Fri, Dec 30, 2016 at 10:35 PM, Chris Angelico >> wrote: >> >>> How likely is it that you'll have this form of collision, rather than

Re: [Python-ideas] AtributeError inside __get__

2016-12-31 Thread Eric Snow
On Sat, Dec 31, 2016 at 12:33 AM, Nick Coghlan wrote: > On 31 December 2016 at 05:53, Ethan Furman wrote: >> On 12/30/2016 07:10 AM, Chris Angelico wrote: >>> What module would be appropriate, though? >> >> Well, DynamicClassAttribute is kept in the types

Re: [Python-ideas] incremental hashing in __hash__

2016-12-31 Thread Brendan Barnwell
On 2016-12-30 17:04, Ethan Furman wrote: On 12/30/2016 04:31 PM,j...@math.brown.edu wrote: On Fri, Dec 30, 2016 at 7:20 PM, Ethan Furman wrote: If you are relying on an identity check for equality then no two FrozenOrderedCollection instances can be equal. Was that your intention? It it

Re: [Python-ideas] incremental hashing in __hash__

2016-12-31 Thread Nick Coghlan
On 31 December 2016 at 15:13, wrote: > On Fri, Dec 30, 2016 at 10:35 PM, Chris Angelico wrote: > >> How likely is it that you'll have this form of collision, rather than >> some other? Remember, collisions *will* happen, so don't try to eliminate >> them