Re: [sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread Dr. David Kirkby
On 07/10/10 07:41 PM, Jason Grout wrote: On 7/10/10 6:04 AM, William Stein wrote: Eventually, Sage will switch to Python 3.x. Things are accelerating. On the numpy/scipy list from today: We could accelerate them even more, by using the -3 flag, and identifying what bits of the Sage librar

Re: [sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread Dr. David Kirkby
On 07/10/10 07:41 PM, Jason Grout wrote: On 7/10/10 6:04 AM, William Stein wrote: Eventually, Sage will switch to Python 3.x. Things are accelerating. On the numpy/scipy list from today: We could accelerate them even more, by using the -3 flag, and identifying what bits of the Sage librar

[sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread Jason Grout
On 7/10/10 6:04 AM, William Stein wrote: Eventually, Sage will switch to Python 3.x. Things are accelerating. On the numpy/scipy list from today: "As many of you probably already know, Numpy works fully on Python 3 and Python 2, with a *single code base*, since March. This work is scheduled

Re: [sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread William Stein
On Sat, Jul 10, 2010 at 3:13 PM, Johannes 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

Re: [sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread Johannes
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 fa

Re: [sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread William Stein
On Sat, Jul 10, 2010 at 3:00 PM, daveloeffler wrote: > > > On 10 July, 13:05, Johannes wrote: >> Hi list, >> i just tried the following pice of code and returned an unexcepted, but >> explainable behavior: >> >> sage: p = los[0][1] >> A lattice polytope: 3-dimensional, 4 vertices. >> sage: list(s

[sage-devel] Re: Bug or feature - questoin about databindings

2010-07-10 Thread daveloeffler
On 10 July, 13:05, Johannes wrote: > Hi list, > i just tried the following pice of code and returned an unexcepted, but > explainable behavior: > > sage: p = los[0][1] > A lattice polytope: 3-dimensional, 4 vertices. > sage: list(set([ p  for p in reduce (lambda x,y : x + y,[  f.points() > for f