> And if you apply the solution in the cython module itself, the methods
> will only be bound to the class if the module is imported into your
> session.
Ahahahahah. This looks tricky :-)
Thanks for the tip !!!
Nathann
--
To post to this group, send an email to sage-devel@googlegroups.com
To u
And if you apply the solution in the cython module itself, the methods will
only be bound to the class if the module is imported into your session.
For example extending with file myfunctions.pyx :
from sage.graphs.graph import Graph as g
import types
def testme(g):
return g
g.testme=ty
Ho Nathann,
On Mon, Jun 18, 2012 at 12:34:15PM +0200, Nathann Cohen wrote:
> Helloo everybody !!!
>
> Our graph files are getting quite large, and there is in some situations a
> way to make it shorter : we can define some functions in modules and import
> them in the Graph class af