Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

give pytype_mapping precendence over default mappings #792

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

marius311
Copy link
Contributor

@marius311 marius311 commented Jul 12, 2020

Trivial fix to give the user-specified pytype_mappings precedence over the default built-ins, such that things which subclass Python array, dict, etc... can have custom mappings in PyCall.

@stevengj mentions in #700 (comment) that you're trying to move away from needing these conversions at all, but given that its a year later and we're still not quite there, I think this is still useful in the meantime.

Closes #751, #700

@marius311
Copy link
Contributor Author

Hey guys, can you take a look at this? I think this is right, and the current behavior is problematic.

@stevengj stevengj merged commit 46b15d7 into JuliaPy:master Sep 16, 2020
@stevengj
Copy link
Member

LGTM.

@marius311
Copy link
Contributor Author

Awesome, thank you!

@PallHaraldsson PallHaraldsson mentioned this pull request Sep 24, 2020
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.

Can't convert a subtype of a base Python type to a custom Julia type
2 participants