[Tutor] Seek suggestions for script for looking up extensions using C:\>assoc

2010-08-06 Thread Richard D. Moores
Python 3.1; Windows Vista. I just ran C:\>assoc and was amazed to see 658 associations roll by. Here's the top of the list: .001=jZip.file .386=vxdfile .3g2=QuickTime.3g2 .3gp=QuickTime.3gp .3gp2=QuickTime.3gp2 .3gpp=QuickTime.3gpp .7Z=jZip.file .aa=NeroShowTime.Files9.aa .aac=QuickTime.aac .ac3=

Re: [Tutor] Seek suggestions for script for looking up extensions usingC:\>assoc

2010-08-06 Thread davidheiserca
You wouldn't gain much with a Pyton script. You can specify the extension with "assoc". Try "assoc .zip". But if you want to try it anyway, look at the "popen2" module (depreciated) or the "subprocess" module to extract the data and assign it to a variable that you can parse any way you lik

Re: [Tutor] Seek suggestions for script for looking up extensions usingC:\>assoc

2010-08-06 Thread Richard D. Moores
On Fri, Aug 6, 2010 at 07:56, wrote: > > You wouldn't gain much with a Pyton script. You can specify the extension > with "assoc". > > Try "assoc .zip". > > But if you want to try it anyway, look at the "popen2" module (depreciated) > or the "subprocess" module to extract the data and assign it t

[Tutor] Idea for a 'Weekly Python Tips' mailing list

2010-08-06 Thread Ian Ozsvald
Hi all. I'm a long time Pythonista and co-founder of http://ShowMeDo.com/ (and author of 140 of the Python tutorials there), I'm here with an idea... Recently I've started to follow a couple of email lists that send me regular tip emails, I've found them to be rather nice - an easy to read tip tha

Re: [Tutor] Idea for a 'Weekly Python Tips' mailing list

2010-08-06 Thread Eric Hamiter
Your ideas are intriguing to me, and I wish to subscribe to your newsletter. Eric On Fri, Aug 6, 2010 at 11:19 AM, Ian Ozsvald wrote: > Hi all. I'm a long time Pythonista and co-founder of > http://ShowMeDo.com/ (and author of 140 of the Python tutorials > there), I'm here with an idea... > >

Re: [Tutor] Idea for a 'Weekly Python Tips' mailing list

2010-08-06 Thread Lie Ryan
On Fri, 6 Aug 2010 17:19:46 +0100, Ian Ozsvald wrote: Recently I've started to follow a couple of email lists that send me regular tip emails, I've found them to be rather nice - an easy to read tip that comes every week that I can digest when I'm ready and I can reference afterwards. In th

[Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Wayne Watson
Yes, porpoises was a (old) pun. Back in Feb. I raised a question related to Subject. I just wanted to know if Python code could be compiled in some sense. Robert Berman pitched in with some help. Although I was making progress, I put it off for a future date. I really don't want to get into py

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Chris Fuller
It sounds like maybe you could use Enthought Python, which is a bundle of most of the popular numerical libraries by the scipy sponsors. Not free, however, there's a trial version. http://enthought.com/products/epd.php The problem of bundling stuff is a real thorny one and has been beaten to

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Emile van Sebille
On 8/6/2010 10:51 AM Wayne Watson said... Yes, porpoises was a (old) pun. Back in Feb. I raised a question related to Subject. I just wanted to know if Python code could be compiled in some sense. Robert Berman pitched in with some help. Although I was making progress, I put it off for a future

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Alan Gauld
"Wayne Watson" wrote programs w/o him stumbling. I send him a py program written using Windows Python 2.5. He has the same. I've executed it IDLE and it works fine. He executes, and it squawks IDLE is a development environment. Never, ever test final code in a development environment, test i

[Tutor] modify csv textfile

2010-08-06 Thread TGW
I have a pipe delimited text file with 5 columns which looks like this: 12345|some text|some more text|example125 oo3 3456|example32423 11223|more text|and more|example/73d 77665|example455667 12677|text|more|anotherexample 123|anotherexample45 What I want to output is: 12345|some text|some more t

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread j ram
> > My intent though is really not to produce a commercial product. My question > relates to difficulty my partner and I have to exchanging py programs w/o > him stumbling. I send him a py program written using Windows Python 2.5. He > has the same. I've executed it IDLE and it works fine. He execu

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Che M
> #, showing his output. We need to make sure we are on the same playing > ground with numpy and scipy. I don't think we are. He barely knows > Python, but did, supposedly, a install of it, numpy and scipy from the > same written direction I use. I think he mistakenly installed a > different

Re: [Tutor] modify csv textfile

2010-08-06 Thread James Mills
On Sat, Aug 7, 2010 at 12:35 PM, TGW wrote: > I have a pipe delimited text file with 5 columns which looks like this: > 12345|some text|some more text|example125 oo3 3456|example32423 > 11223|more text|and more|example/73d 77665|example455667 > 12677|text|more|anotherexample 123|anotherexample45 >