Re: how do i fix this invalid arguement error

2016-11-27 Thread eryk sun
On Sat, Nov 26, 2016 at 5:55 PM, Dennis Lee Bieber wrote: > On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junko...@gmail.com declaimed the > following: > >> with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun >> 2016-11-25-11-11.csv','r') as f: > > Second... does Python open() accept w

Re: how do i fix this invalid arguement error

2016-11-26 Thread Chris Angelico
On Sun, Nov 27, 2016 at 1:24 PM, Cameron Simpson wrote: > I thought //192.168.0.1/foo/... was a network share, getting "foo" from host > 192.168.0.1. Disclaimer: not a Windows guy. But I've certainly using UNIXy > systems implementing this syntax, and thought I'd seen an equivalent in > Windows la

Re: how do i fix this invalid arguement error

2016-11-26 Thread Cameron Simpson
On 26Nov2016 12:55, Dennis Lee Bieber wrote: On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junko...@gmail.com declaimed the following: with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: [...] Second... does Python open() accept web add

Re: how do i fix this invalid arguement error

2016-11-26 Thread Steve D'Aprano
On Sun, 27 Nov 2016 03:12 am, junko...@gmail.com wrote: > import csv > with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun > 2016-11-25-11-11.csv','r') as f: \f inserts a FORMFEED character, ASCII code 12. \n inserts a LINEFEED character, or newline, ASCII code 10. I believe that

Re: how do i fix this invalid arguement error

2016-11-26 Thread Terry Reedy
On 11/26/2016 12:55 PM, Dennis Lee Bieber wrote: On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junko...@gmail.com declaimed the following: import csv with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: reader=csv.reader(f) for row in reader:

how do i fix this invalid arguement error

2016-11-26 Thread junkone1
import csv with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: reader=csv.reader(f) for row in reader: print(row) File "C:/Users/Suresh/PycharmProjects/untitled/test.py", line 2, in with open('\\192.168.0.1\fe18cb0618cabd41\

Re: Arguement error

2005-09-01 Thread Jeffrey Maitland
Found the error.  It was not in the code at all it has to do with the fact that the String module has a translate method and it was being used not the one I wrote. Thanks again.On 8/31/05, Terry Reedy <[EMAIL PROTECTED]> wrote: "Jeffrey Maitland" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL PR

Re: Arguement error

2005-08-31 Thread Terry Reedy
"Jeffrey Maitland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello folks, >I am wondering why I am getting this error. when I try to run a script. >TypeError: translate() takes at most 3 arguments (10 given) Because you apparently gave it more than 3 args. >>> str.translate._

Re: Arguement error

2005-08-31 Thread Randy Bush
> I am wondering why I am getting this error. when I try to run a script. > TypeError: translate() takes at most 3 arguments (10 given) > but the thing is the method translate actually accepts 10 arguements. without code, how is anyone to know? -- http://mail.python.org/mailman/listinfo/python

Arguement error

2005-08-31 Thread Jeffrey Maitland
Hello folks, I am wondering why I am getting this error. when I try to run a script. TypeError: translate() takes at most 3 arguments (10 given) but the thing is the method translate actually accepts 10 arguements. That is what is confusing me. Jeff -- http://mail.python.org/mailman/listinf