Anton Mellit wrote: >> Have you looked at SAGE at all? They already have wrappers for Pari. > > Well :) I expected that question. I tried. But the distribution for > windows is so big :( (2GB) and I could not build it on cygwin, where > it is also pretty big. And I so much like pari - it is so light and > simple and still can do almost everything. So my idea is to make > simple module for python so that you don't need to install 2GB program > with 2000 functions where it is difficult to find the one you need, > but just type 'import pari', and then help(pari), and then find a > function like 'ellinit' and create an elliptic curve, or type some > polynomial and factor, or expand some function into power series, or > integrate numerically... > > I heard from some people that SAGE is good but i somehow don't > appreciate the approach. > >> I don't recommend continuing to modify core parts of Python just for your >> module. It means that you will break other Python modules. If you can't use >> other Python modules with your module, what's the point of using Python at >> all? > > Of course you don't have to replace ** with ^ or making that hack with > division. The module would work with or without these changes. But I > think every mathematician agrees that x**2 is really ugly.
So? There is no reason to make alterations to the core to achieve what you want. You just need to parse your almost-Python code yourself before executing it. That's what SAGE does. You really should take a closer look at it. It is possible to take just part of SAGE and not install the whole thing. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list