[petsc-dev] windows fixes.

Barry Smith bsmith at mcs.anl.gov
Fri Jun 28 14:24:00 CDT 2013


  Jed,

    I was just kidding; I do think decorators are a better design. But I don't want --download-python just so they can be used in a couple of random places :-)


  Barry

On Jun 28, 2013, at 12:49 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Barry Smith <bsmith at mcs.anl.gov> writes:
> 
>>   Boy those decorators sure saved you a lot of code below. I cannot
>>   imagine how anyone actually wrote code using python 2.4 without
>>   decorators, the code must have been so long that it constantly
>>   filled the entire filesystem and everyone's hands were so tired
>>   from typing. Thank god for decorators!
> 
> It's not an issue of quantity of code, but readability, in the same
> sense that it would be confusing to name the parameters to a function
> after the function rather than at the top.  I think the 'with' statement
> is a far more important feature of python-2.5.




More information about the petsc-dev mailing list