On Wednesday, 11 December 2013 06:35:04 UTC-7, Nathann Cohen wrote: > > Hellooooooooo !! > > I suppose one can add a parameter to the method creaing variables to >> LPs, and allowing one to specify nonnegativity. >> This, combined with the deprecation, should allow for an easy change - >> indeed the default assumption x>=0 is kind of weird for outsiders... > > > Hmmm..... O_o > > *Which* deprecation ? You can deprecate a function, or a keyword, but in > this case if we change the default behaviour.... Except adding a warning > when a MixedIntegerLinearProgram is built... Or making a new argument > mandatoy in the new_variable function... O_o > > Nathann >
Perhaps keep default >=0 but when new_variable is called issue DeprecationWarning that the default will change? New parameters should allow setting both >=0 and free explicitly, so that those who want >=0 in the future can set it now and those who don't can also set it now, and when the default will change - no code will be broken, just some of it will explicitly set a parameter which is there by default anyway, which is not that big of a deal. get/set methods on the other hand can just be deprecated directly. Andrey -- 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/groups/opt_out.