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

Feature: Add support for __getattr__ #234

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Feature: Add support for __getattr__ #234

merged 3 commits into from
Oct 31, 2023

Conversation

robert3005
Copy link
Member

No description provided.

@robert3005 robert3005 requested a review from gatesn October 31, 2023 13:23
}

pub fn __getattr__(self: *const Self, attr: py.PyObject) !py.PyObject {
const attrName = try py.PyString.checked(attr);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just take a PyString as the argument?

@robert3005 robert3005 merged commit 79777de into develop Oct 31, 2023
1 check passed
@robert3005 robert3005 deleted the rk/getattr branch October 31, 2023 17:56
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