Not understanding this documentation
Terry Reedy
tjreedy at udel.edu
Wed Jul 22 12:59:01 EDT 2009
F.O.P. wrote:
Your subject line should have been about "SyntaxError message"
> http://bugs.python.org/issue5358
Why reference this? Unless you added zero-width joiners in the move,
this is irrelevant noise.
> I simply installed 3.0 on my ubuntubox
Upgrade to 3.1 as soon as you can. Works better.
> brought my project from a
> windows machine and made necessary changes to what I had used from os
> and os.path. I have an error at the end of this line:
> for k in range(I):
> and the error:
> SyntaxError: invalid character in identifier
>
> I've already declared I way above as the lenth of an array (I = len
> (IA))
> There shouldn't be a problem there aren't any issues with other
> declarations identical to this.
I otherwise concur with R. James as there is no syntax error posted.
To make sure there is nothing invisible in that line, do
print(repr("for k in range(I):")) # should be no escaped chars and
print(len("for k in range(I):")) # should be 18, I believe
tjr
More information about the Python-list
mailing list