Enhancement #1459

rsb.Scope does not define __hash__ and hence cannot be used in dictionaries

Added by J. Wienke about 11 years ago. Updated about 11 years ago.

Status:ResolvedStart date:04/05/2013
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:Python
Target version:rsb-0.9

Description

For being usable in hashed collections like dictionaries rsb.Scope should define the __hash__ method in line with the __eq__ method.

Associated revisions

Revision 33dad0b5
Added by J. Wienke about 11 years ago

Add hash support for Scopes.

fixes #1459

History

#1 Updated by J. Wienke about 11 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset rsb-python|commit:33dad0b58825ad44778af2c86e6db3a0b87505cc.

#2 Updated by J. Wienke about 11 years ago

  • Subject changed from rsb.Scope does not define __has__ and hence cannot be used in dictionaries to rsb.Scope does not define __hash__ and hence cannot be used in dictionaries

Also available in: Atom PDF