subtraction is giving me a syntax error

Grant Edwards invalid at invalid.invalid
Mon Mar 15 14:09:29 EDT 2010


On 2010-03-15, Philip Semanchuk <philip at semanchuk.com> wrote:
> On Mar 15, 2010, at 1:37 PM, Joel Pendery wrote:
>
>> So I am trying to write a bit of code and a simple numerical
>> subtraction
>>
>> y_diff = y_diff-H
>>
>> is giving me the error
>>
>> Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no
>> encoding declared.
[...]
>
> 0x96 is the Win1252 minus sign character. Did you copy & paste this 
> code from a Web browser or a word processor?
>
> Delete the character between "y_diff" and "H" and replace it with a 
> plain ASCII subtraction sign.

I think somebody needs to stop editing his code with MS Word and start
using a programming editor. ;)

-- 
Grant Edwards               grant.b.edwards        Yow! Make me look like
                                  at               LINDA RONSTADT again!!
                              gmail.com            



More information about the Python-list mailing list