We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Python's dot syntax can be simply defined as a normal procedure. This is an example:
(define (py:dot obj . attrs) (define (f obj attr) (if (py:has-attr? obj attr) (py:get-attr obj attr) (errorf 'dot "~s not in ~s" attr obj))) (fold-left f obj attrs)) ;; time.time.__doc__ (with-python (define time (py:import-module "time")) (print-python-object (py:dot time "time" "__doc__")))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Python's dot syntax can be simply defined as a normal procedure. This is an example:
The text was updated successfully, but these errors were encountered: