Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
> > > > I really like using F5 to run my code, so you can put in your .vimrc so you > don't have to type it, or just type it every time: > > map :!python % > > and every time you hit it will run your current script. > > Thanks for that. It's even better than typing :!python % because it doesn't s

Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
Try out Vim. It may take you a week to get used to it. Best thing I ever did was finally get started on Vim. Once I got used to it I was very happy. Google around for Vim tutorials. There is a #VIM channel on freenode I believe. There is also a VIM mailing list that is very helpful. You won't need

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread Mike Hoy
> > On Tue, Jun 9, 2009 at 6:34 AM, The Green Tea Leaf < > thegreenteal...@gmail.com> wrote: > >> I got an email from him that he had a gzip.pyc file in that folder. >> Once he deleted that everything works OK. > > > Heh... I think I've made that mistake before; > > "My import statement doesn't wor

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread Mike Hoy
On Tue, Jun 9, 2009 at 3:00 AM, Mike Hoy wrote: > Here's the screenshot: > > http://img40.imageshack.us/img40/7124/printtwice.png > > In case the image goes down here's the code: > import gzip > import datetime > date = datetime.date.today() > name = date.st

[Tutor] Can't figure out why this is printing twice

2009-06-08 Thread Mike Hoy
I have the following code: import gzip import datetime date = datetime.date.today() name = date.strftime('%m-%d-%Y')+'.gz' date.strftime('%m-%d-%Y')+'.gz' print "The name of the file will be", name the output is: The name of the file will be The name of the file will be 06-08-2009.gz I can't fi

[Tutor] Jython question

2008-12-05 Thread Mike Hoy
ughts? -- Mike Hoy ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Scrolling through output in shell

2008-11-19 Thread Mike Hoy
os.system("cat textfile | less") did the trick, thanks everyone. On Wed, Nov 19, 2008 at 2:34 PM, Lie Ryan <[EMAIL PROTECTED]> wrote: > On Mon, 17 Nov 2008 09:20:55 -0500, Shawn Milochik wrote: > >> On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy <[EMAIL PROTECTED]&

Re: [Tutor] Scrolling through output in shell

2008-11-17 Thread Mike Hoy
Ok thanks Alan for looking into it. I'll give it a try. On Mon, Nov 17, 2008 at 12:27 PM, ALAN GAULD <[EMAIL PROTECTED]> wrote: > Forwarding to the group. > Please use Reply All when responding. > > > - Original Message > From: Mike Hoy <[EMAIL PROT

[Tutor] Scrolling through output in shell

2008-11-16 Thread Mike Hoy
gram? I noticed that on the man pages that you can do that although I'm sure it's not written in python. Do I need to find a new language to write this in? Maybe use a different language for the output and still use python? Any help appreciated. -- Mike H

[Tutor] put data from text file into list

2007-07-01 Thread Mike Hoy
is it possible to take information contained inside a text file and put it into a list? My text file contains info derived from a list so it looks like this: ['foo','bar']. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo

[Tutor] How do I delete all Files of certain extension type?

2007-06-20 Thread Mike Hoy
quot;: print "GoodBye" deleteAll() Any pointers you can offer would be appreciated. Thanks, Mike Hoy ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor