So I realize that the docs have the list of node types for the Node class, but from poking around, I can’t seem to find a way to programmatically get a list of available nodeTypes for a given Node object (short of inspecting the class, pulling every all caps member with a name ending in ‘NODE’, and then sorting by value). Is there any way to do this?
So I realize that the docs have the list of node types for the
Share
I wish there was something better, but lacking that, I created a new module:
It’s hacky, so I don’t really like it, but as long as it is imported at least once during program execution, I get my new method.