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

Q: how to pass Python's None to D's null? #160

Open
mw66 opened this issue Jun 21, 2022 · 0 comments
Open

Q: how to pass Python's None to D's null? #160

mw66 opened this issue Jun 21, 2022 · 0 comments

Comments

@mw66
Copy link
Contributor

mw66 commented Jun 21, 2022

Hi,

I have a Python variable which default to None, and I need to pass it back to D side as null (basically I'm calling a D function, and want to pass a D null via autowrap), but I got an error:

.dub/packages/pyd-0.14.3/pyd/infrastructure/pyd/make_object.d(704): Couldn't convert Python type 'NoneType' to D type 'TheClassDType'

Is this a bug / enhancement? or there is some work-around?

Thanks.

I'm not sure this is a autowrap or pyd issue, so I logged same issue here:

symmetryinvestments/autowrap#312

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

No branches or pull requests

1 participant