gambitproject / gambit

Gambit: The package for computation in game theory
http://www.gambit-project.org
GNU General Public License v2.0
400 stars 150 forks source link

except + for all functions in gambit.pxd unless it breaks compilation #398

Closed rahulsavani closed 11 months ago

rahulsavani commented 11 months ago

Since it wasn't clear to me why some additions of "except +" would break compilation, I choose to try except absolutely everywhere -- the only cases now where we don't have it is where having it breaks compilation (in which case it is there but commented out, with the extra comment "doesn't compile").

The new tests are only for cases where I managed to trigger these exceptions, which are all variants of the example from 389, using payoff or liap value.

Let me know what you suggest to push, but I thought you'd want to see which ones were breaking compilation anyway.