I'm using the following code to compute a hashcode for a set of strings in Objective-C:
I'm also trying to compute the same hashcode for comparison in Python, using the following code:
...which raises an error:
Two arguments? I know that the object is implicitly passed as the the first argument, but why is it asking for a second one?
This seems inconsistent with both the ObjC version and the Python documentation for this function. I can't find any Python sample to indicate what I should be providing, and Python not being my language of choice, I can't figure out it wants.