-
Notifications
You must be signed in to change notification settings - Fork 121
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
Fix dir() method #20321
base: develop
Are you sure you want to change the base?
Fix dir() method #20321
Conversation
I've discovered from other changes I need to make here. |
@visit-dav/visit-developers and @cyrush can you please have a look at the direction this is headed and lemme know what you think. There are 3 key things to look at here...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setattro/getattro will still allow custom logic for handling old settings? (As is currently done for VolumePlot)?
You will be verifying the test suite, correct?
{ | ||
// Contract is stored in a a ref ptr, so it will clean itself up. | ||
// but ? | ||
} | ||
|
||
|
||
// **************************************************************************** | ||
// Function: Contract_getattr | ||
// Function: Contract_getattro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to change the function names in the comments to match new names.
Not sure what you mean.
Well, if I must 🤔. |
We allow pre/post fixing code to set/getattr to allow processing old atts during a 'transition' period while people adjust their scripts. Similar to 'ProcessOldVersions' method for the C-Atts when reading configs/session files. Just want to make sure that this logic will still work after your changes (probably need to adjust the function name). |
I think the answer is that whatever |
Description
Resolves #19264
__dir__()
method to our python objects which lists all methods in the_methods[]
table (except__dir__
andNotify
) as well as all non-internal data membersdir()
method inPySpreadsheetAttributes.C
_methods
table pointer to thetp_methods
slot of the object headerNotify
toMETH_NOARGS
in the_methods[]
table_NMETH
by one (which causes all associated.h
files to change too)apropos
Type of change
[ ] Documentation update[ ] OtherHow Has This Been Tested?
Reminders:
Checklist: