constraints = context.scene.rigidbody_world.constraints.objects || 
What is the ‘correct’ way to deal with this issue in python, especially when the attribute is buried deep like objects in the above example. I’ve been resorting to nested ‘if hasattr(…’ statements, but googling about hasn’t really revealed the ‘right way’ to handle this.
Any help is appreciated! Thanks