[Tutor] small program

2009-10-02 Thread Andrius
Hi! There are interesting online course http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/LectureVideos/index.htm where I'm trying to learn Python. Looks quite interesting and I would like to create a program which should repeat a simply string several times with

Re: [Tutor] small program

2009-10-02 Thread Benno Lang
On Thu, Oct 1, 2009 at 8:31 PM, Andrius ziniatink...@gmail.com wrote: Hi! There are interesting online course http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/LectureVideos/index.htm where I'm trying to learn Python. Looks quite interesting and I would like

Re: [Tutor] UnboundLocalError and Break

2009-10-02 Thread Luke Paireepinart
If your code's more than 10 lines long or so, put it on pastebin.com and send us the link rather than inlining the whole thing. You could also send it as an attachment.Your formatting is all screwed up and I can't read the code at all, but I have an idea about your error. On Wed, Sep 30, 2009

[Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Nicola De Quattro
Hi, I'm a 26 years old Italian engineer. Because to the fact that I'm an astrophile and astronomical tool (expecially under Linux) are not so common, I would like to develop some simple tool for some purposes. Well, I'm not knew to software development but I've never used python. So I want to list

Re: [Tutor] help with alternate execution

2009-10-02 Thread Patrick Sabin
wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0: print n, is divisible by 3 else: print n, is not divisible by 3 n= raw_input(enter a

[Tutor] how to run php scripts in pylons framework?

2009-10-02 Thread goooogi goooogi
Dear All, I have some php scripts which I don't want to rewrite in python. How can I run php Scripts in python? Thanks in advance Googi G ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Stefan Behnel
Nicola De Quattro wrote: So I've to open an image (various formats, first I could need only .fits), to process the image in order to select the interesting strip containing the star and the spectrum (first image of the link posted, but I hope I can select the strip not only in the horizontal

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Wayne
On Fri, Oct 2, 2009 at 8:44 AM, Stefan Behnel stefan...@behnel.de wrote: Nicola De Quattro wrote: So I've to open an image (various formats, first I could need only .fits), to process the image in order to select the interesting strip containing the star and the spectrum (first image of

Re: [Tutor] how to run php scripts in pylons framework?

2009-10-02 Thread vince spicer
On Fri, Oct 2, 2009 at 1:24 AM, ggi ggi gop...@gmail.com wrote: Dear All, I have some php scripts which I don't want to rewrite in python. How can I run php Scripts in python? Thanks in advance Googi G ___ Tutor maillist -

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Sander Sweers
2009/10/2 Stefan Behnel stefan...@behnel.de: Without looking further into your problem, there are two (main) general purpose image manipulation libraries for Python (that I know of) that you may want to look at: PIL and ImageMagick. At least ImageMagick supports FITS. There is a python module

Re: [Tutor] Images, and other things.

2009-10-02 Thread Kent Johnson
On Tue, Sep 29, 2009 at 7:00 PM, Corey Richardson kb1...@aim.com wrote: I haven't looked into this, but could you make a real time image using python? I think it would be most hard Anyway, I am having trouble with int(). I am trying to int(raw_input(some number)), but it returns Traceback

Re: [Tutor] small program

2009-10-02 Thread bob gailer
Andrius wrote: Hi! There are interesting online course http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/LectureVideos/index.htm where I'm trying to learn Python. Looks quite interesting and I would like to create a program which should repeat a simply string

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Eike Welk
Hello Nicola! For scientific computing there are the Numpy and Scipy libraries: http://www.scipy.org/ For making graphs there is Matplotlib: http://matplotlib.sourceforge.net/ You should join the mailing lists of these projects. For the GUI I would use QT4:

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread RĂ¼diger Wolf
I remember reading some Python tutorials that where written specifically for Astronomers. Did a search on Google. This is not the tutorial I originally read but maybe you will find it to be useful. http://www.stsci.edu/hst/training/events/Python/readManDispImages_WU.pdf Regards Rudiger On Fri,

[Tutor] How to perform variable assignment and

2009-10-02 Thread Didar Hossain
Hi, I am currently learning Python and I was wondering is there a shorter way to do the following - import os homedir = os.environ.get('HOME') if homedir: print My home directory is %s % homedir I do this in Perl - my $home; if ($home = $ENV{'HOME'}) { print My home directory is