[sympy] Re: python 3 support update

2009-07-05 Thread Ondrej Certik
> update, I got this to work, just needed to use the classmethod strip() > instead of the one in the string module. Did some other fixes (it's in > my repo), but now I am blocked on this: > > >  >>> import sympy > Traceback (most recent call last): >   File "sympy/core/decorators.py", line 73, in

[sympy] Re: python 3 support update

2009-07-05 Thread Ondrej Certik
Ok, I kind of fixed the rest, see my py3-3 branch at github. Now: $ SYMPY_USE_CACHE=no python3.1 -c "import sympy" $ so sympy at least imports. However, to give you some taste of what is still in front of us: = test process starts == execu

[sympy] Re: python 3 support update

2009-07-05 Thread Ondrej Certik
On Sun, Jul 5, 2009 at 3:00 PM, Ondrej Certik wrote: > In general there are dozens of those little things that just don't > work. I will start by reporting the bugs to the 2to3 tool, so that we > don't have to edit stuff by hand so much at least. I reported bugs that I can easily reproduce here:

[sympy] Re: python 3 support update

2009-07-05 Thread Ondrej Certik
On Sun, Jul 5, 2009 at 4:24 PM, Ondrej Certik wrote: > On Sun, Jul 5, 2009 at 3:00 PM, Ondrej Certik wrote: >> In general there are dozens of those little things that just don't >> work. I will start by reporting the bugs to the 2to3 tool, so that we >> don't have to edit stuff by hand so much at

[sympy] Re: python 3 support update

2009-07-06 Thread Ondrej Certik
On Sun, Jul 5, 2009 at 7:39 PM, Ondrej Certik wrote: > On Sun, Jul 5, 2009 at 4:24 PM, Ondrej Certik wrote: >> On Sun, Jul 5, 2009 at 3:00 PM, Ondrej Certik wrote: >>> In general there are dozens of those little things that just don't >>> work. I will start by reporting the bugs to the 2to3 tool,

[sympy] Re: python 3 support update

2009-07-07 Thread Aaron S. Meurer
Will these changes have to go in a separate sympy-py3k release or will they be backwards compatible with Python 2? I think that we should put whatever is backwards compatible in the main release. I know a lot of it is cleaning up imports, which will be good for both versions. For exampl

[sympy] Re: python 3 support update

2009-07-07 Thread Ondrej Certik
On Tue, Jul 7, 2009 at 1:27 PM, Aaron S. Meurer wrote: > > Will these changes have to go in a separate sympy-py3k release or will > they be backwards compatible with Python 2?  I think that we should > put whatever is backwards compatible in the main release.  I know a > lot of it is cleaning up i

[sympy] Re: python 3 support update

2009-07-08 Thread Ondrej Certik
My latest update is in the "py3-5" branch in my repo at github. sympy imports and some tests run (in the core), but lots of still fails. Fortunately it's usually pretty easy to debug it using pdb and just commit lots of little fixes. Once we fix everything, we'll try to backport most of the chang

[sympy] Re: python 3 support update

2009-07-08 Thread Aaron S. Meurer
As long as you are changing import statements, you might as well change ntheorey/__init__.py so that it doesn't do from module import *. This will fix issue 1454. I thought that that wasn't allowed anymore in Python 3.0, but maybe I read it wrong. Aaron Meurer On Jul 9, 2009, at 12:01 AM,

[sympy] Re: python 3 support update

2009-07-09 Thread Ondrej Certik
On Thu, Jul 9, 2009 at 12:23 AM, Aaron S. Meurer wrote: > > As long as you are changing import statements, you might as well > change ntheorey/__init__.py so that it doesn't do from module import > *.  This will fix issue 1454.  I thought that that wasn't allowed > anymore in Python 3.0, but maybe

[sympy] Re: python 3 support update

2009-07-09 Thread Aaron S. Meurer
I fixed it. See http://github.com/asmeurer/sympy/tree/global-i-fix or issue 1454. I maintained the use of from .module import syntax, so it should work in py3k (I don't have it to check, though. That is just based on what I saw the 2to3 tool did in your branch). On Jul 9, 2009, at 8:22 AM

[sympy] Re: python 3 support update

2009-07-03 Thread Fabian Pedregosa
Ondrej Certik wrote: > Hi, > > I fixed the import problems, so things should now work in python3, > except that the 2to3 tool breaks. :( > > checkout my py3-prepare branch: > > http://github.com/certik/sympy/tree/py3-prepare > > and run the 2to3 tool: > > $ python3.1 ~/ext/Python-3.1/Tools/sc

[sympy] Re: python 3 support update

2009-07-03 Thread Fabian Pedregosa
Fabian Pedregosa wrote: > Ondrej Certik wrote: >> Hi, >> >> I fixed the import problems, so things should now work in python3, >> except that the 2to3 tool breaks. :( >> >> checkout my py3-prepare branch: >> >> http://github.com/certik/sympy/tree/py3-prepare >> >> and run the 2to3 tool: >> >> $ py

[sympy] Re: python 3 support update

2009-07-03 Thread Ondrej Certik
On Fri, Jul 3, 2009 at 10:37 PM, Fabian Pedregosa wrote: > > Fabian Pedregosa wrote: >> Ondrej Certik wrote: >>> Hi, >>> >>> I fixed the import problems, so things should now work in python3, >>> except that the 2to3 tool breaks. :( >>> >>> checkout my py3-prepare branch: >>> >>> http://github.com