← Back to team overview

dolfin team mailing list archive

Re: [noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 4561: Fix wrapping of super_space() to Python.]

 

On Tuesday 23 February 2010 12:37:31 Anders Logg wrote:
> One can now do
> 
>   V.sub(i).super_space()
> 
> and get back V.
> 
> Perhaps sub should be renamed to sub_space?
> 
> And while we're on the subject, why is it called sub and not __getitem__?

I think the original thought was to map the same funcitonality as in 
Function.sub(i). But I like sub_space better, and why not __getitem__.

No strong feelings.

Johan



References