Object protocol#3306
Conversation
db9f1ed to
497fb98
Compare
| fn __hash__(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyHash> { | ||
| Self::slot_hash(&zelf, vm) |
There was a problem hiding this comment.
Is this intended to include in this PR, not in #3308 ?
There was a problem hiding this comment.
He'll probably just rebase those changes here now that they've been merged.
There was a problem hiding this comment.
The below Unhashable changes require this. Will moving them into #3308 be better?
There was a problem hiding this comment.
I think it makes more sense to move it over to #3308
There was a problem hiding this comment.
I think it makes more sense to move it over to #3308
Sorry for late 😢. I also agree with him
yup, I think that's a good idea. After this pr there will be two ways to do the same thing. As I see it, these operations act on objects so they should be exposed through there and not through |
497fb98 to
79e951b
Compare
|
should |
|
Probably. I doub't we really need that trait now. I think relocating |
|
The |
|
@DimitrisJim could you review it? I want to open issue for relocating functino bodies and refactoring around them. |
DimitrisJim
left a comment
There was a problem hiding this comment.
I thought I had reviewed but this does lgtm.
I also suggest to replace the paired vm methods and use PyObjectRef methods
ref #3244