Skip to content

Conversation

oxinabox
Copy link
Contributor

Checked against the source code in

https://github.com/JuliaPy/PythonCall.jl/blob/92bef8ab44cb4bb4f915e6bf3b2ec4f51405852e/src/JlWrap/set.jl#L122C17-L122C27

and

collections.abc.MutableMapping.register(DictValue)

@cjdoris
Copy link
Collaborator

cjdoris commented Oct 14, 2025

Hmm good spot.

However before I go documenting this slightly incorrect behaviour I wonder if it would be better to have both juliacall.DictValue and juliacall.MutableDictValue which differ only in that one inherits Mapping and the other MutableMapping. This would more accurately represent the truth.

Could use ArrayInterface.jl for this.

@cjdoris cjdoris merged commit ee54574 into JuliaPy:main Oct 15, 2025
27 of 31 checks passed
@cjdoris
Copy link
Collaborator

cjdoris commented Oct 15, 2025

Actually what I've said is a separate issue. Merged with thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants