It's actually just a nice part of the python language, setattr(a,
> 'foo', 'bar') is the same code as a.foo = bar.  When working with
> NetCDF, the only time I've needed to use setarr (or getattr) is when
> the name of the attribute I want isn't a valid python identifier (like
> if an attribute has a - in it, e.g. 'unit-type').
>
>
Slick! Another great reason for python. Thanks for the rapid response.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to