clawpack/pyclaw — pull request #116 by ketch (2011-12-23 19:18:07+00:00)
Title: Override grid.__getattr__ and solution.__getattr__ to provide access to dimension and state and grid members.

This replaces the property code in Solution and Grid that makes them appear to have attributes actually belonging to State, Grid, and Dimension. I'm not sure it's an imporovement and would like to hear other opinions, especially from @mandli.

The advantages of my new approach are that it's less code, and it's possible to do it without explicitly listing all the attributes to be exposed (by using inspect, which I haven't yet done). The disadvantages are that these things don't appear in interactive tab-completion and we can't customize their docstrings. But the docstrings before were funny because the first line was customized and then the rest was just the generic help for a Python property.