Re: slightly OT: Python BootCamp

2009-12-04 Thread Neil Cerutti
On 2009-12-04, Steven D'Aprano wrote: > How would I re-write this? Just get rid of the try block and > add a close: > > for (exten, list) in files.iteritems(): > f=open('extensions-%s.txt' % exten,'w') > f.write('\n'.join(list)) "\n".join is a cute shortcut, but if you use it you must rem

Re: slightly OT: Python BootCamp

2009-12-03 Thread J
On Fri, Dec 4, 2009 at 09:21, Steven D'Aprano wrote: > On Thu, 03 Dec 2009 16:20:24 -0500, J wrote: > >> The difference between me (learning a new language) and the guy teaching >> (who knows it inside and out) > > I don't know about that. He's teaching some pretty atrocious habits. See > below.

Re: slightly OT: Python BootCamp

2009-12-03 Thread Steven D'Aprano
On Thu, 03 Dec 2009 16:20:24 -0500, J wrote: > The difference between me (learning a new language) and the guy teaching > (who knows it inside and out) I don't know about that. He's teaching some pretty atrocious habits. See below. > His code: [...] > for (exten, list) in files.iteritems(): >

Re: slightly OT: Python BootCamp

2009-12-03 Thread J
On Sun, Nov 29, 2009 at 20:14, Terry Reedy wrote: > J wrote: >> >> Ok... so I've been re-teaching myself python, as it's been several >> years since I last really used it.  And in the midst of this, my >> contracting company came up to me on Friday and asked if I'd be >> interested in filling a la

Re: slightly OT: Python BootCamp

2009-11-29 Thread Terry Reedy
J wrote: Ok... so I've been re-teaching myself python, as it's been several years since I last really used it. And in the midst of this, my contracting company came up to me on Friday and asked if I'd be interested in filling a last minute vacancy in this: http://www.otg-nc.com/python-bootcamp

Re: slightly OT: Python BootCamp

2009-11-29 Thread Aahz
In article , J wrote: >On Sun, Nov 29, 2009 at 03:57, Carl Banks wrote: >> On Nov 28, 6:15=A0pm, J wrote: >>> >>> http://www.otg-nc.com/python-bootcamp >>> >>> It's a week long Python Bootcamp. >> >> >> I'm surprised they're able to fill out 5 days with intensive training >> on Python. > >but o

Re: slightly OT: Python BootCamp

2009-11-29 Thread Steve Howell
On Nov 28, 6:15 pm, J wrote: > Ok... so I've been re-teaching myself python, as it's been several > years since I last really used it.  And in the midst of this, my > contracting company came up to me on Friday and asked if I'd be > interested in filling a last minute vacancy in this: > > http://w

Re: slightly OT: Python BootCamp

2009-11-29 Thread J
On Sun, Nov 29, 2009 at 03:57, Carl Banks wrote: > On Nov 28, 6:15 pm, J wrote: >> http://www.otg-nc.com/python-bootcamp >> >> It's a week long Python Bootcamp. > > > I'm surprised they're able to fill out 5 days with intensive training > on Python. > > :) Well, if it's anything like other simi

Re: slightly OT: Python BootCamp

2009-11-29 Thread Carl Banks
On Nov 28, 6:15 pm, J wrote: > Ok... so I've been re-teaching myself python, as it's been several > years since I last really used it.  And in the midst of this, my > contracting company came up to me on Friday and asked if I'd be > interested in filling a last minute vacancy in this: > > http://w

Re: slightly OT: Python BootCamp

2009-11-28 Thread Aahz
In article , J wrote: > >Ok... so I've been re-teaching myself python, as it's been several >years since I last really used it. And in the midst of this, my >contracting company came up to me on Friday and asked if I'd be >interested in filling a last minute vacancy in this: > >http://www.otg-nc

slightly OT: Python BootCamp

2009-11-28 Thread J
Ok... so I've been re-teaching myself python, as it's been several years since I last really used it. And in the midst of this, my contracting company came up to me on Friday and asked if I'd be interested in filling a last minute vacancy in this: http://www.otg-nc.com/python-bootcamp It's a wee