Skip to content

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
@jhonabreuljhonabreul merged commit 360948f into QuantConnect:masterDec 2, 2024
@jhonabreuljhonabreul deleted the bug-dynamic-class-throwing-on-hasattr branch December 2, 2024 19:55
Sign up for freeto 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

@jhonabreul@Martin-Molinero