-
Notifications
You must be signed in to change notification settings - Fork 289
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
Deprecate each_child() and each_clip() Python functions #1409
Comments
SynopsisThe names Proposalrename Notes
|
@meshula When you say that "child_if" is not a Pythonic naming, is there documentation or a style guide that provides guidance on what is and is not proper naming? @JeanChristopheMorinPerso Following up from our discussion in the PR, if the "all_children" implies a Python property, is there a variation that reads more like a function? Maybe "get_all_children"? |
I like Python's standard libraries are somewhat inconsistent in naming conventions, so it is hard to point to a specific rule to follow. The Style Guide for Python doesn't say much on this topic except for this, which aligns with @JeanChristopheMorinPerso 's comment:
For code which does use properties, both the setter and getter tend to have the same name, without any Ideally the doc string will clarify that this function gets all of the children recursively whereas the |
How do the doc strings work with the Python wrappings? |
I like |
Thanks for the link to Actually how about |
|
My thought as well. :) I think it also implies |
I think I prefer |
Yes, |
Great, I updated the PR to use |
The deprecated functions are in composition.py, serializable_collection.py, stack.py, timeline.py, and track.py.
Calls to these functions can be replaced with the new "children_if()" and "clip_if()" functions.
The text was updated successfully, but these errors were encountered: