Re: Apparent magic number problem

2013-03-10 Thread Peter Otten
Colin J. Williams wrote: My main problem appears to be with: Profile with Python 2.7 11 25.7362.340 25.7362.340 {numpy.linalg.lapack_lite.dgesv} Profile with Python 3.2 11 152.111 13.828 152.111 13.828 {built-in method dgesv} In other words, the

Re: Apparent magic number problem

2013-03-09 Thread Peter Otten
Colin J. Williams wrote: The program runs correctly under each version, but it runs more slowly under 3.2. This is probably due to the fact that the .pyc file is created for the Python 2.7 execution. When Python 3.2 is run it fails to create a new .pyc file and if the 2.7 .pyc is offered

Re: Apparent magic number problem

2013-03-09 Thread Colin J. Williams
On 09/03/2013 3:51 AM, Peter Otten wrote: Colin J. Williams wrote: The program runs correctly under each version, but it runs more slowly under 3.2. This is probably due to the fact that the .pyc file is created for the Python 2.7 execution. When Python 3.2 is run it fails to create a new

Apparent magic number problem

2013-03-08 Thread Colin J. Williams
I have a program that I wish to run in both Python 2.7 and Python 3.2 The program runs correctly under each version, but it runs more slowly under 3.2. This is probably due to the fact that the .pyc file is created for the Python 2.7 execution. When Python 3.2 is run it fails to create a

Re: Apparent magic number problem

2013-03-08 Thread Steven D'Aprano
On Fri, 08 Mar 2013 19:48:28 -0500, Colin J. Williams wrote: I have a program that I wish to run in both Python 2.7 and Python 3.2 The program runs correctly under each version, but it runs more slowly under 3.2. Without knowing what your program does, it is impossible to comment on why it