Re: Printing/writing an integer to a file

2006-11-16 Thread Ben Finney
"Steven D'Aprano" <[EMAIL PROTECTED]> writes: > On Fri, 17 Nov 2006 14:18:12 +1100, Ben Finney wrote: > > > The function call syntax doesn't allow a space between the > > function name and the opening parenthesis. > > Are you sure? Are you kidding? Do you think I'd post to this newsgroup if I was

Re: Printing/writing an integer to a file

2006-11-16 Thread Steven D'Aprano
On Fri, 17 Nov 2006 14:18:12 +1100, Ben Finney wrote: > The function call syntax doesn't allow a space between the function > name and the opening parenthesis. Are you sure? I thought it was allowed but not recommended because it is hard to read. >>> len ([1, 2, 3]) 3 Seems to work for me. An

Re: Printing/writing an integer to a file

2006-11-16 Thread Ben Finney
PS <[EMAIL PROTECTED]> writes: > Friends, Please, don't send message bodies to public discussion forums in any format other than plain text. HTML email in particular has wildly differing implementations and renderings. > I am new to python and did search on the web on how to achieve this: > ( I

Re: Printing/writing an integer to a file

2006-11-16 Thread Gabriel Genellina
At Thursday 16/11/2006 22:33, PS wrote: Friends, I am new to python and did search on the web on how to achieve this: ( I am trying to append the line numbers to all the lines of a file for now) But you forget to say what went wrong... Next time, post the error message including the full tr

Printing/writing an integer to a file

2006-11-16 Thread PS
Friends, I am new to python and did search on the web on how to achieve this: ( I am trying to append the line numbers to all the lines of a file for now) Thanks!! = import os, sys fileName = os.path.join("C:", "temp", "x1.txt") fileobject = open