"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
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
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
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
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