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

Bug dynamic class throwing on hasattr #96

Conversation

jhonabreul
Copy link
Collaborator

Throw AttributeError in tp_getattro for dynamic classes.
Python api documentation indicates it should throw AttributeError, else hasattr would throw instead of returning false when an attribute is not present.

See: https://docs.python.org/3/c-api/object.html#c.PyObject_GenericGetAttr

Python api documentation indicates it should throw AttributeError
@jhonabreul jhonabreul merged commit 360948f into QuantConnect:master Dec 2, 2024
0 of 21 checks passed
@jhonabreul jhonabreul deleted the bug-dynamic-class-throwing-on-hasattr branch December 2, 2024 19:55
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