Il faut utiliser "with"  comme ca :

with T.clone() as TT:
            TT[chemin[:-1]]=trees([],None)

Tant qu'on est dans le "with" l'arbre est mutable

Frederic


Le lundi 3 septembre 2012 18:57:51 UTC+2, Viviane Pons a écrit :
>
> Hi everyone, 
>
> I'm trying to work with trees but I find them quite difficult to use. 
> I have a simple question : how can I crate a temporary mutable 
> labelled rooted tree and set it to be immutable after the construction 
> is finished ? 
>
> I have found no way of doing this and this would be necessary for what 
> I'm doing now. If someone know how it works, it would be great. 
>
> Thank's 
>
> Viviane 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/cRljg5RpUK0J.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to