Re: [Tutor] Need help with dates in Python

2011-03-09 Thread C.Y. Ruhulessin
import datetime min = datetime.date(2008, 1, 1) max = datetime.date(2012, 12, 31) file = open ('test2.txt','r') line = file.readline()[-1] while line: # your code 2011/3/9 nookasree ponamala > Hi, > > I need help in finding the minimum date and maximum date in a file. > Here is my test fil

Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread C.Y. Ruhulessin
Thanks, will check it out! 2011/2/3 Noah Hall > On Thu, Feb 3, 2011 at 11:11 AM, C.Y. Ruhulessin > wrote: > > For an application that I am designing, i'd like to achieve the same > > functionality, so the end users don't have to bother installing Python > >

[Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread C.Y. Ruhulessin
Hi all, When I load up Civilization IV, a Firaxis game, the loading screen tells me "Loading Python". However, I can't seem to find out where it installs python (and Python wasn't installed before I installed it myself), so I *assume *that it 'installs' and loads Python at runtime. For an applic

Re: [Tutor] Is it possible to make a circle of 1 hour

2011-01-26 Thread C.Y. Ruhulessin
Do time machines count to? 2011/1/26 Alan Gauld > > "shaheryar ali" wrote > > > I was wondering, Is it possible to generate a circle on Google maps using >> python, such that distance in the created circle could be travel in 1 >> hour. >> > > Technically it would be possible I'm sure. The tric