Closed jeffrey82221 closed 1 year ago
I love this idea. You bring up a valid point. We can definitely include it in new release. Would you like to ship it with the rest of your contributions and would you rather we release in a separate minor release before the rest of your contributions?
Hi @GrandMoff100 ,
I wonder if you can add hash operator to support set operation for RegexPattern.
The use case is as follows:
Without hash, the above situation will raise:
TypeError: unhashable type: 'RegexPattern'
.A simple additional
__hash__
method to the RegexPattern class may solve the problem:I am willing to make this contribute, too. Is it possible to add this new feature to the near future release (maybe v1.0.1)?