On Thu, May 24, 2012 at 9:29 PM, Aaron Meurer <[email protected]> wrote: > On Thu, May 24, 2012 at 11:22 AM, Sergiu Ivanov > <[email protected]> wrote: >> On Thu, May 24, 2012 at 6:59 PM, Sergiu Ivanov >> <[email protected]> wrote: >>> On Thu, May 24, 2012 at 1:52 PM, Vladimir Perić <[email protected]> >>> wrote: >>>> >>>> Currently, we do support Python 3, but only with the use of the 2to3 >>>> tool (vie the bin/use2to3 script). As such, the recommended >>>> development process is to work in Python 2. then once everything is >>>> alright run use2to3 and check if all the tests pass under Python 3 >>>> too. You should be using Python 3.2 (3.1 will mostly work too, but >>>> there may be some doctest errors). I also recommend, if possible, to >>>> work in Python 2.5 (the lowest supported version) as that's where the >>>> trickiest issues arise - 2.7 already supports by default many of the >>>> Python 3 constructs. In any case, whatever works on 2.5 will almost >>>> certainly work on 2.7 while the opposite is less true. >>> >>> I see; thank you for the detailed explanation! >> >> Just one more question: in the py3k-sympy directory I get after >> running use2to3 I cannot run ./bin/isympy because of >> >> File "./bin/isympy", line 175 >> print __doc__ # the docstring of this module above >> ^ >> SyntaxError: invalid syntax >> >> I am far from being a Python expert, to say nothing of Python 2 vs 3, >> but, as far as I remember, using print without parentheses is >> forbidden in Python 3, so I gather that at least ./bin/isympy does not >> get converted. Is this expected or am I missing something? >> >> By the way, ./setup.py test runs nicely. >> >> Sergiu >> > > Yes, this is a known issue. See > https://github.com/sympy/sympy/pull/726. For now the work around is > to Python 3 manually (if you want isympy, you can do "from sympy > import init_session; init_session()"). > > Vladimir, within the next few days, I plan to finish up that branch. > Will you have enough time to accept a pull request against your > branch, and also possibly review any changes, or should I just create > a new pull request?
Yeah, I think I'll be able to help, sorry it's been languishing so long. Do whatever is easier to you, I'll be happy to review in any case (just ping me). As I said above, I have a lot of school nowadays and GSoC started again, but I'll try to do what I can. (BTW, my GSoC project this year: bring Twisted as close as possible to Python 3 support! :)) > > Aaron Meurer > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- Vladimir Perić -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
