I hope this isn't old news. I just figured out how to use "lambda" as a variable without conflicting with the Python keyword. It's very simple -- all you need to do is put an underscore at the end of the name:
lambda_ = var("lambda") This is the syntax for adding a subscript, but ... no subscript. The result renders properly and is in every other way a normal variable. I was creating a renderable version of the standard Planck blackbody equation and discovered the "lambda problem". This solves it. It renders correctly in latex, with no artifact from the underscore. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---