2015-01-18 17:32 UTC+01:00, John H Palmieri <[email protected]>: > Oh, I see: it's the preparsing. When you do "sys.exit(42)", the number 42 > is a Sage integer, not a Python integer. So sys.exit doesn't know what to > do with it. (I still don't know why that causes the number to be printed.) > > So use sys.exit(int(42)) instead.
Nice catch! Alternatively: * use a .py extension (that way there will not be any preparsing) * write sys.exit(int(42r)) Vincent -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
