Re: [Tutor] Passing command line argument in function

2005-06-13 Thread Liam Clarke
What path is the file? On 6/14/05, Gary Taylor <[EMAIL PROTECTED]> wrote: I'm trying to pass the name of a file as the first argumentto the ftp.storbinary function(?) below.  The only thing Ican get to work is the real file name hard coded as theargument.  I've tried parenthesis, single quotes, dou

[Tutor] Passing command line argument in function

2005-06-13 Thread Gary Taylor
I'm trying to pass the name of a file as the first argument to the ftp.storbinary function(?) below. The only thing I can get to work is the real file name hard coded as the argument. I've tried parenthesis, single quotes, double quotes, and many combinations of the previous. I've tried passing s

Re: [Tutor] Strange IndexError

2005-06-13 Thread Danny Yoo
On Mon, 13 Jun 2005, Willi Richert wrote: > I used the same Pyro code, but this time with the release versions of > player and stage. This time python crashed with a segfault: Hi Willi, If you see a segfault like this, it's almost definitely a bug in a third-party module. It is possible that

Re: [Tutor] Strange IndexError

2005-06-13 Thread Willi Richert
Hi, I used the same Pyro code, but this time with the release versions of player and stage. This time python crashed with a segfault: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1273599056 (LWP 27633)] tupleiter_next (it=0xb6393cec) at Objects/tupleobject.c:797 797

Re: [Tutor] Web browser

2005-06-13 Thread Kent Johnson
Liam Clarke wrote: > Can Beautiful Soup execute scripts? I was trying to scrape using > urllib2, and the Javascripts messed my navigation up something chronic. No, Beautiful Soup won't run scripts. AFAIK the only way to access the web from Python and execute JavaScripts is to automate a browser