The Composite Builder Pattern, an Example of Declarative Programming [Update]
I'm calling this the Composite Builder pattern. This may have other names, but I haven't seen them. It could simply be lack of research into prior art. I suspect this isn't very new. But I thought it was cool way to do some declarative Python programming.
Here's the concept.
class …more ...