-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issues with Attributes on provide
d Python Objects
#2
Comments
provide
d Python Objects
Workaround appears to be to add a (require (prefix-in pyffi/ pyffi))
(require "py-point.rkt")
;; this doesn't exist, but I'm guessing something like it might
(pyffi/read-attr py-point 'x) Related: #3 |
Oh cool! These seem to work as workarounds:
|
In this examle:
The Now in One fix:
which will display
Another way:
|
Wow! Very nice explanation and thank you! |
Note that you can do this:
If you prefer to have the |
Observed behavior:
If a python object is exported, there isn't a way to access its attributes.
Expected behavior:
I'm not sure. Ideally attributes could be accessed. Short of that, some documentation about best-practice for being able to access the attribute of a python object from a different module.
Repro:
Store this in
py-point.rkt
:Store this in
main.rkt
:Run
main.rkt
:Other stuff
Note that within
py-point.rkt
, attributes can be accessed:The text was updated successfully, but these errors were encountered: