On Sat, Jul 10, 2010 at 3:13 PM, Johannes <dajo.m...@web.de> wrote: > > Am 10.07.2010 15:04, schrieb William Stein > [...] >> This is standard Python behaviour. A list comprehension doesn't have >>> its own scope, so the "p" used in the list comprehension overwrites >>> the other "p" previously declared in the same scope. I agree that this >>> can be annoying, but it's a fact of life in Python programming. >>> >> ... albiet, a temporary one (!): >> >> wst...@redhawk:~$ python3.1 >> Python 3.1.2 (r312:79147, Apr 15 2010, 15:35:48) >> [GCC 4.4.3] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>>>> [i*i for i in range(10)] >>>>> >> [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >> >>>>> i >>>>> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> NameError: name 'i' is not defined >> >> The point being that in Python 3.x this fact of life is change. >> Eventually, Sage will switch to Python 3.x. >> >> William >> >> > > is there a way to build sage testwise with python 3.x? For example by > setting a special path/variable or replace some files?
Not yet. But you can try. It won't happen until somebody tries (really hard)... William > > greatz Johannes > > -- > 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 > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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