Re: [Tutor] How I overcame my problems executing python programs.

2012-03-16 Thread cyclicf...@yahoo.com
I've just received this e-mail on my android and believe that the above advice is good(as always), this list is great for beginners as there are a never-ending amt. Of talented/knowledgable ppl. Available. Additionally, I love Eclipse's Pydev(Comes incl. 'd) already in AptanaStudio(Eclipse-

Re: [Tutor] stuck on null values

2012-03-16 Thread Joel Goldstick
On Thu, Mar 15, 2012 at 5:45 PM, ADRIAN KELLY wrote: > > > > Adrian Kelly > 1 Bramble Close > Baylough > Athlone > County Westmeath > > 0879495663 > > >> Date: Thu, 15 Mar 2012 17:38:52 -0400 >> Subject: Re: [Tutor] stuck on null values >> From: joel.goldst...@gmail.com >> To: kellyadr...@hotmail.

[Tutor] Help for to do a script

2012-03-16 Thread Boris Vladimir Comi
Hello, I am writing to request your help in the realization of a script. I am new to this and I'm just learning the wonderful world of python and this has made me a little difficult. Briefly I commented what I intend to do: I detect a class of atmospheric phenomena known as Mesoscale Convectiv

Re: [Tutor] Help for to do a script

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 2:52 PM, Boris Vladimir Comi wrote: > Hello, I am writing to request your help in the realization of a script. I > am new to this and I'm just learning the wonderful world of python and this > has made me a little difficult. > > Briefly I commented what I intend to do: > >

Re: [Tutor] Help for to do a script

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 2:58 PM, Joel Goldstick wrote: > On Fri, Mar 16, 2012 at 2:52 PM, Boris Vladimir Comi > wrote: >> Hello, I am writing to request your help in the realization of a script. I >> am new to this and I'm just learning the wonderful world of python and this >> has made me a litt

Re: [Tutor] stuck on null values

2012-03-16 Thread Alan Gauld
On 16/03/12 14:44, Joel Goldstick wrote: Take a look at this: while True: num = raw_input("give me an integer: ") try: n = int(num) break except: print "Sorry, that wasn't and integer!" pass The pass is redundant it does nothing (thats its purpose! :-) You can al

Re: [Tutor] Help for to do a script

2012-03-16 Thread Alan Gauld
On 16/03/12 18:52, Boris Vladimir Comi wrote: *File "/home/mcidasv/JYTHON/TIR.py", line 22 count = count + 1; ^ SyntaxError: invalid syntax* Error messages indicate where Python found the problem. Often the real problem is a line or so before that. In your case you omitted the colon after the

Re: [Tutor] stuck on null values

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 3:02 PM, Alan Gauld wrote: > On 16/03/12 14:44, Joel Goldstick wrote: > >> Take a look at this: >> >> while True: >>   num = raw_input("give me an integer: ") >>   try: >>     n = int(num) >>     break >>   except: >>     print "Sorry, that wasn't and integer!" >>     pass

[Tutor] Datetime objects

2012-03-16 Thread Luke Thomas Mergner
Hi, I am having trouble comparing two datetime objects. Using Sqlalchemy I save a string as a date into an sqlite field (which has no native date format, I gather). > import datetime as dt > date_obj = dt.datetime.strptime(date_string,'%m.%d.%Y') I want to compare that date later with an inp

Re: [Tutor] Datetime objects

2012-03-16 Thread Steven D'Aprano
Luke Thomas Mergner wrote: Hi, I am having trouble comparing two datetime objects. No you're not. You're having trouble comparing a datetime and a date object. [...] But when I compare them, it always returns false because datetime.date does not seem to compare to datetime.datetime... Use