Not understanding this documentation

John Machin sjmachin at lexicon.net
Wed Jul 22 23:24:47 EDT 2009


On Jul 23, 2:45 am, "F.O.P." <f.orndorffplunk... at gmail.com> wrote:
> On Jul 22, 9:07 am, "Rhodri James" <rho... at wildebst.demon.co.uk>
> wrote:
>
>
>
>
>
>
>
> > On Wed, 22 Jul 2009 15:46:09 +0100, F.O.P. <f.orndorffplunk... at gmail.com>  
> > wrote:
>
> > >http://bugs.python.org/issue5358
> > > I simply installed 3.0 on my ubuntubox 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.
>
> > Could you show us slightly more of your code and the rest of the
> > error message, please?  I have a suspicion that the error actually
> > lies in the "necessary changes" you made.
>
> > --
> > Rhodri James *-* Wildebeest Herder to the Masses
>
> I spoke to a friend about it and he found that I had put in a unicode
> "semicolon" rather than ASCII.

This is rather puzzling. What are you describing as a "unicode
semicolon"? Possibilities include:

(a) U+003B SEMICOLON (which is exactly what you need)
(b) U+037E GREEK QUESTION MARK (which looks like (a))
(c) U+061B ARABIC SEMICOLON (which looks like (a) rotated 180 degrees)

How did you get it into your source file?

What was in your
# coding: ?????
or similar line at the top of your source file?



More information about the Python-list mailing list