Thanks a lot for this prompt answer.

That's what I was afraid of : to add methods to 
sage.symbolic.expression.Expression, you jus have to patch the source and 
recompile. That means a turnaround time of 10-40 minutes each time. Better 
be sure of my syntax...

--
Emmanuel Charpentier

Le dimanche 9 octobre 2016 10:48:16 UTC+2, Nicolas M. Thiéry a écrit :
>
> Hi Emmanuel,
>
> Just a brief answer for now: recursive_monkey_patch is about structuring 
> the source code when you have a bunch of methods / classes that you want to 
> monkey patch. But the monkey patching itself happens exactly as you did by 
> hand, or as Andrew's decorator does: just assigning the method to the 
> class. So it's not going to help for your problem of patching a Cython 
> class, sorry.
>
> Cheers,
>                                                 Nicolas
>
> ------------------------------
> *De: *"Emmanuel Charpentier" <[email protected] <javascript:>>
> *À: *"sage-devel" <[email protected] <javascript:>>
> *Envoyé: *Samedi 8 Octobre 2016 21:18:46
> *Objet: *[sage-devel] To the attention of Nicolas M Thiéry 
> (recursive-monkey-patch)
>
> Ncolas,
>
> Could you have a look at this thread 
> <https://groups.google.com/forum/#!topic/sage-support/s5fEtw9XTAU> in 
> sage-support ? I'm trying to use your recursive-monkey-patch 
> <https://pypi.python.org/pypi/recursive-monkey-patch/0.2.0> module, but 
> can't make head or tail from your instructions.
>
> Thanks in advance,
>
> --
> Emmanuel Charpentier
>
> -- 
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to