Skip to content

Remove methods like ==(::Py, ::Number) and +(::Number, ::Py) #703

@cjdoris

Description

@cjdoris

These are handy but they break the general model that a Python int is not a Julia Integer etc.

For example we currently have Py(3) == 3 but hash(Py(3)) != hash(3), which breaks a Julia invariant.

I suspect it might lead to method invalidations too but I don't know.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions