Hello !! > We've actually just thought of a completely different approach that we > _might_ or _might not_ go with. There are advantages (which include not > having to deal with this problem at all) and disadvantages that we need to > carefully consider (if it's of interest the idea is here: > https://github.com/theref/sage-game-theory/issues/48).
Well, indeed if you just import functions from the gambit library inside of your functions then you will have no problem with the doc :-) > With regards to the optional compilation, I might have expressed myself > poorly. We've found another solution. Would adding the following to all.py in > our game_theory folder be 'acceptable' with regards to general Sage etiquette > etc: > > from sage.misc.package import is_package_installed > from cooperative_game import CooperativeGame > if is_package_installed('gambit'): > from normal_form_game import * > > normal_form_game.py is the module that imports and inherits from gambit. HMmmmmm... Well, I have no idea about Sage's etiquette on this respect :-D It would be better to import the functions you need inside of each function, but well.. If it is this or no doc, this is definitely better ^^; Nathann -- 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. For more options, visit https://groups.google.com/d/optout.