[Tutor] List installed python modules

2008-07-21 Thread Eli Brosh
Hello, Is there a way to get a list of installed python modules and their versions ? i.e. I would like to know if matplotlib is installed on my computer and what version is it. And so with other modules. Thanks Eli ___ Tutor maillist - Tutor@python.o

Re: [Tutor] open-file GUI

2008-07-04 Thread Eli Brosh
Many thanks for the tutor mailing-list members for their replies, The EasyGui is just what I was looking for. Regards Eli Brosh ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] open-file GUI

2008-07-04 Thread Eli Brosh
and pick an ASCII file ? After the file is spcified using the GUI, I want to read it using fromfile and similar commands. After I process the data I want a similar GUI that enables choosing the path and name for saving the results file. Are scripts of this type available ? Thanks Eli Brosh

Re: [Tutor] 2-D array to string

2007-11-23 Thread Eli Brosh
in python, without '[' that appear if I just use: print a Thanks Eli -----הודעה מקורית- מאת: Evert Rol [mailto:[EMAIL PROTECTED] נשלח: ו 11/23/2007 16:24 אל: Eli Brosh עותק לידיעה: tutor@python.org נושא: Re: [Tutor] 2-D array to string > I am starting to use pylab/numpy/scipy instea

[Tutor] 2-D array to string

2007-11-23 Thread Eli Brosh
Hello I am starting to use pylab/numpy/scipy instead of MATLAB. I now have a real beginners question (I think it is not really related to numpy) I have a two-dimensional array a=[[1,2,3],[4, 5, 6],[7,8,9]] Is there a simple way to turn it into a multiline string ? That is, turn a into: s='''1 2

Re: [Tutor] Variables in workspace

2007-10-14 Thread Eli Brosh
Many thanks to Bob and Kent and all the good people in the tutor forum. The dir() and del work really well ! Eli מאת: bob gailer [mailto:[EMAIL PROTECTED] נשלח: ש 10/13/2007 17:35 אל: Kent Johnson עותק לידיעה: Eli Brosh; tutor@python.org נושא: Re: [Tutor

[Tutor] Variables in workspace

2007-10-13 Thread Eli Brosh
Hello I am working with python interactively using IDLE. Since starting, I defined some variables: s='string' a=1 b=[1,2] c=1.02 and so on. Now, I want to know which variables are in my workspace. That is, is there a command similar to "who" in MATLAB ? I want to call "who" and get the output:

[Tutor] Extract lines from a multinile string

2007-10-09 Thread Eli Brosh
Hello I have a multiline string such as: s='''This is the first line This is the second line This is the third longer line''' Note that s has no control character such as \n. The lines are defined as in "natural" writing. How can I extract from s, several strings, each of which is a line from t

[Tutor] A bug or a feature - complex arguments in special

2007-04-02 Thread Eli Brosh
Alan G wrote: >It would be good if you could include the error text. >However, did you try putting the complex number in parens? >or assigning to a variable and then pass the variable into the call? Well, the error message is not from Pytho but from the operating system (windows XP). It says "py

[Tutor] A bug or a feature - complex arguments in special functions

2007-04-01 Thread Eli Brosh
1+1j) I got an error message and python restarted. The problem did not go away after I installed the latest version of SciPy. Is there a significant bug in the bessel functions when handling complex arguments ? Or, is it some feature that I do not understand

[Tutor] How to set PYTHONPATH

2006-11-06 Thread Eli Brosh
  How do i set the PYTHONPATH variable ? From answers to my query on "editing path" I realized that this is what should be done if i want to include another folder in the  Python search path.   I tried: import sys sys.path.append('additional path')   but it worked only at runtime and is forgotte

[Tutor] executing script from script

2006-11-06 Thread Eli Brosh
Hello. I wish that my Python program will not be stored on a single file. how can I call one python script from another ?   Thanks Eli___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] editing Path

2006-11-06 Thread Eli Brosh
Hello. I am beginning to use python on windows. how can I add a path to Python search-list where I can store my python scripts ? On IDLE the command browse path lets me to see the existing path but not to edit it.   thanks Eli___ Tutor maillist - Tut