Re: Crummy BS Script

2010-10-03 Thread Nobody
On Sat, 02 Oct 2010 22:15:31 -0700, flebber wrote: > Cargo Cult Coding? > > Not sure what it is but it sounds good. Imitation without understanding, aka monkey-see-monkey-do. http://en.wikipedia.org/wiki/Cargo_cult -- http://mail.python.org/mailman/listinfo/python-list

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 3, 4:15 pm, flebber wrote: > On Oct 3, 9:58 am, John Bokma wrote: > > > > > flebber writes: > > > On Oct 2, 4:24 pm, Steven D'Aprano > > cybersource.com.au> wrote: > > >> On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > > >> > On Oct 2, 9:27 am, MRAB wrote: > > >> >> On 01/10/2010 2

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 3, 9:58 am, John Bokma wrote: > flebber writes: > > On Oct 2, 4:24 pm, Steven D'Aprano > cybersource.com.au> wrote: > >> On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > >> > On Oct 2, 9:27 am, MRAB wrote: > >> >> On 01/10/2010 23:29, Burton Samograd wrote:> > >> >> flebber  writes:

Re: Crummy BS Script

2010-10-02 Thread John Bokma
flebber writes: > On Oct 2, 4:24 pm, Steven D'Aprano cybersource.com.au> wrote: >> On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: >> > On Oct 2, 9:27 am, MRAB wrote: >> >> On 01/10/2010 23:29, Burton Samograd wrote:> >> >> flebber  writes: >> >> >> >> But where is this saving the imported f

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 2, 4:24 pm, Steven D'Aprano wrote: > On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > > On Oct 2, 9:27 am, MRAB wrote: > >> On 01/10/2010 23:29, Burton Samograd wrote:> > >> flebber  writes: > > >> >> But where is this saving the imported file and under what name? > > >> > Looks like s

Re: Crummy BS Script

2010-10-01 Thread Steven D'Aprano
On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > On Oct 2, 9:27 am, MRAB wrote: >> On 01/10/2010 23:29, Burton Samograd wrote:> >> flebber  writes: >> >> >> But where is this saving the imported file and under what name? >> >> > Looks like samples.csv: >> >> >> f = open('samples.csv', 'w') >>

Re: Crummy BS Script

2010-10-01 Thread flebber
On Oct 2, 9:27 am, MRAB wrote: > On 01/10/2010 23:29, Burton Samograd wrote:> flebber   > writes: > > >> But where is this saving the imported file and under what name? > > > Looks like samples.csv: > > >> f = open('samples.csv', 'w') > > It'll be in the current working directory, which is given b

Re: Crummy BS Script

2010-10-01 Thread MRAB
On 01/10/2010 23:29, Burton Samograd wrote: flebber writes: But where is this saving the imported file and under what name? Looks like samples.csv: f = open('samples.csv', 'w') It'll be in the current working directory, which is given by: os.getcwd() -- http://mail.python.org/mailm

Re: Crummy BS Script

2010-10-01 Thread Burton Samograd
flebber writes: > But where is this saving the imported file and under what name? Looks like samples.csv: > f = open('samples.csv', 'w') -- Burton Samograd -- http://mail.python.org/mailman/listinfo/python-list

Crummy BS Script

2010-10-01 Thread flebber
I have a simple question regarding the Beuatiful soup crummy script. The last line is f.write('%s, %s, %s, %s, %s \n' % (i, t[0], t[1], t[2], t[3])), But where is this saving the imported file and under what name? #!/usr/bin/env python # ogm-sampples.py # Author: Matt Mayes # March 11, 2008 """ --