On May 6, 2009, at 11:01 AM, David Harvey wrote: > On May 6, 10:41 am, kcrisman <kcris...@gmail.com> wrote: > >> So is there any final consensus on this? Is the following Sage >> program automatically GPL? >> >> {{{ >> 2+2 >> >> }}} >> >> Or only in the following form? >> >> {{{ >> Integer(2)+Integer(2) >> >> }}} >> >> Please no flames! I only wanted to know if there was a consensus, I >> got sort of confused by 50 messages on this in my RSS reader at once. >> >> If there isn't a consensus (and it seems there is not) then please >> don't reply, and I will go along with Rob B. and publish whatever >> Sage >> worksheets I want to under whatever license I deem appropriate, if >> any. > > Totally awesome thread guys. > > What about this one? > > def is_prime(n): > return not any([1 * n / d == n // d for d in range(2, n)]) > > Works in sage, but not in python. Is it GPL?
I think it depends on the context. Ignoring questions of substantiveness, if you were to publish the above code as "MyAwsomePrimeDetectingScript.sage" then it would need to be licensed under the GPL. If, however, you had this code in a tutorial/worksheet "Detecting Primes: a Comparison of Various Methods" than I think not (because I wouldn't classify that as a derivative work of Sage). Both the GMP and MPFR manuals contain code that uses GMP/MPFR in their manuals, and I'm sure they're not the only ones. Their manuals are licensed under the GFDL, which is incompatible with the GPL. Perhaps the license is so restrictive that the FSF can't even abide by it, but I take it as an indication that there is at least some leeway here. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---