Hi!

FWIW: I created decorators @require_mutable and @require_immutable at 
#14524, which needs review.

Note that the patch does not *use* the two decorators. Using them for, say, 
graphs shall be a second ticket.

Best regards,
Simon

Am Donnerstag, 2. Mai 2013 16:47:10 UTC+2 schrieb Travis Scrimshaw:
>
> Hey Simon,
>    I don't think so... This would be useful for other mutable things such 
> as matrices and simplicial complex rather than explicitly check it in the 
> methods themselves.
>
> Best,
> Travis
>
>
> On Thursday, May 2, 2013 9:38:06 AM UTC-4, Simon King wrote:
>>
>> Hi! 
>>
>> Is there a decorator that wraps a method so that the method is only 
>> executed 
>> after asserting that "self" is mutable? For example, one could easily 
>> create 
>> immutable graphs by applying this decorator to the add_vertex, add_edge, 
>> ... methods. 
>>
>> Best regards, 
>> Simon 
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to