Where's Psyco now?
Hello. This is my first message to the list. In this article written in 2002 http://www.ibm.com/developerworks/library/l-psyco.html they talk about Psyco as a module that makes it possible to accelerate Python. Is it still a state-of-the-art module? I found it here also: http://pypi.python.org/pypi/psyco/1.6 Do you think it's useful, or it depends...? -- Vicent Giner-Bosch, Valencia, Spain -- http://mail.python.org/mailman/listinfo/python-list
Re: IDLE cursor color
On 18 dic, 20:52, r wrote: > in IDLE go to: > Options -> Configure IDLE -> Highlighting... > > 1.) in the box click the word "cursor" > 2.) press the button that says "Choose Color for" > 3.) Pick a color and save the changes > > viola! you did it! :) Thank you! I don't understand... I have tried that before and it didn't work. Now it does!! :-S Previously, I changed the cursor color to green, but nothing happened. That's why I sent the message to the list. Now I've changed it again to "pink", and now I can see it, blinking and blinking... :-) Thanks again! -- Vicent -- http://mail.python.org/mailman/listinfo/python-list
IDLE cursor color
I am working with IDLE, version 1.2.2 I've changed the colors theme using the "Options > Configure IDLE..." menu option. I've chosen a black background for all the items, so now my work area is black, and everything is OK, except for the fact that I can't see where the cursor is located, I mean, I don't know in which part of the window I am going to write. The cursor is blinking black, but I don't know how to change it. Please, any suggestion, hint, tip or clue?? Thank you in advance! -- http://mail.python.org/mailman/listinfo/python-list
Debugging in Python
Hello again. Thank you for the answers I got to my previous question. All of them were very useful to me. I want to know if I have understood well the way I can work with Python. As far as I've understood, [the free version of] ActivePython is just a [good, ready-to-work] Python distribution. Also, it contains and editor, PythonWin Editor. Has that editor the ability of performing good debugging tasks? I mean, is it enough for doing debugging? I pose this question because I've seen there is Komodo Editor and its non-free version Komodo IDE. For me, Komodo Editor has a very good interface. And the only feature I would like to get from the non-free version of Komodo is the ability of debugging. But I won't by it if I can have nearly the same with PythonWin Editor. In your opinion, what other benefits from non-free Komodo are worth it, if compared with PythonWin? Can people with more experience in Python programming help me?? Thank you in advance! -- Vicent -- http://mail.python.org/mailman/listinfo/python-list
Installing NumPy and SciPy in Python 2.6
Sorry if my question was already asked and answered, but I can't manage with this... I've installed Python 2.6 in my Windows XP. Actually, I've installed ActiveState's ActivePython 2.6. I would like to use NumPy and SciPy. Are those packages compatible with version 2.6 of Python? Are they already installed in ActivePython 2.6? If not, how can install them? I downloaded the Windows installers for NumPy and SciPy, but as they are prepared for Python 2.5, I can't make the installers run properly. Any piece of help will be appreciated. Thank you! -- Vicent -- http://mail.python.org/mailman/listinfo/python-list
How to use OpenOpt
Hello. I am interested in using OpenOpt, a numerical optimization framework in Python. I've been reading the official documentation about OpenOpt, but it seems a little confusing to me. So, this is a question about OpenOpt; sorry if it is too specific for this forum, but I thought maybe someone reading this forum could know anything about OpenOpt. My question is: if I want to use OpenOpt, what must I do? In fact, if I want to develop a new optimization algorithm in Python, how can I use OpenOpt? I mean, in which part of the process can / should I use OpenOpt? What are the advantages of using OpenOpt? Is it just a "bunch" or library of available optimization algorithms, or does it also provide a general framework (a general predefined Object Oriented structure, for example, some general functions in order to manage algorithms...) in order to build an test or run our own algorithms? I hope I've been clear enough about my questions. Any answer will be appreciated. Thank you very much in advance. -- Vicent Giner-Bosch, Valencia (Spain) -- http://mail.python.org/mailman/listinfo/python-list
Re: Using Python for programming algorithms
On May 19, 6:11 pm, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > On May 19, 7:03 am, Bruno Desthuilliers > I'm pretty sure about that: when the algorithms take 4 hours to test > a single execution, you value processor time. Yes, of course, but that should mean that I have to do it better, in the programming step (I would have to re-program or re-implement my algorithm). And I think the problem would be the same in any other language, wouldn't it? > The situation would be simpler if there were good well-known toolkits > for optimization in python (like numpy for matrix operations), but > that's not the case. Are there such toolkits in other languages? I am not sure they exist in C, for example. By the way, is it possible (and easy) to call a C function from a Python program?? -- http://mail.python.org/mailman/listinfo/python-list
Re: Using Python for programming algorithms
Thank you very much for all the answers I've got. As far as I have understood, Python can be a good alternative, or, at least, a reasonable choice. I intend to design new algorithms for a kind of Optimization problems, and then I have to implement them and show/prove that they are good enough, in terms of effectiveness (quality of the solution that the algorithm is able to find, for some given "difficult" problems), and not mainly in terms of efficiency (time to find the solution). I mean, in order to prove that my algorithms are "good", I have to compare them with the results given by other algorithms, in terms of how much better is the solution given by my proposal, in front of the previous ones. Only comparatives in terms of "number of iterations", and not "time to find the solution", can be done (I think). And I also realize, from your posted answers, that the point is doing a good programming work, and that I will have to look very carefully at all those packages and resources you have mentioned, to do a good work at Python. Any other suggestion will be welcomed. :-) Thank you very much again! -- Vicent -- http://mail.python.org/mailman/listinfo/python-list
Re: Using Python for programming algorithms
> > The usual answer is that development > time is more important than running time. OK, thank you for your answer. I just wanted to check if it was a naive idea trying to use Python instead of C in order to implement my own algorithms, and other research-related code. > > Since you are likely to be using arrays, > you might look at numpy, where the > number crunching is using compiled C code. NumPy seeems to be a very interesting and powerful package. Thank you again. > > Try Google with Python and your area of > interest. You could well find > Python-based packages which meet your needs. > Yes, I've been giving a try, and I've found some interesting links. Thank you! -- Vicent -- http://mail.python.org/mailman/listinfo/python-list
Using Python for programming algorithms
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming language —I mean, it is not like C, in that sense. I am working on my PhD Thesis, which is about Operations Research, heuristic algorithms, etc., and I am considering the possibility of programming all my algorithms in Python. The usual alternative is C, but I like Python more. The main drawbacks I see to using Python are these: * As far as I understand, the fact that Python is not a compiled language makes it slower than C, when performing huge amounts of computations within an algorithm or program. * I don't know how likely it is to find libraries in Python related to my research field. * I know Python is a "serious" and mature programming language, of course. But I do not know if it is seen as "just funny" in a research context. Is Python considered as a good programming language for implementing Operations Research algorithms, such as heuristics and other soft-computing algorithms? Maybe this is not the right forum, but maybe you can give me some hints or tips... Thank you in advance. -- http://mail.python.org/mailman/listinfo/python-list