Re: subtraction is giving me a syntax error

2010-03-22 Thread Albert van der Horst
In article <56597268-3472-4fd9-a829-6d9cf51cf...@e7g2000yqf.googlegroups.com>, 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 >encod

Re: subtraction is giving me a syntax error

2010-03-16 Thread Benjamin Kaplan
On Tue, Mar 16, 2010 at 4:12 PM, Grant Edwards wrote: > On 2010-03-16, Vito 'ZeD' De Tullio wrote: > > Grant Edwards wrote: > > > >>> As for not being able to see the difference between a hyphen and an > >>> EN- dash, or minus sign, or whatever it is, yes but they are very > >>> similar looking g

Re: subtraction is giving me a syntax error

2010-03-16 Thread Grant Edwards
On 2010-03-16, Vito 'ZeD' De Tullio wrote: > Grant Edwards wrote: > >>> As for not being able to see the difference between a hyphen and an >>> EN- dash, or minus sign, or whatever it is, yes but they are very >>> similar looking glyphs in virtually ever modern font. It would take a >>> good eye t

Re: subtraction is giving me a syntax error

2010-03-16 Thread Vito 'ZeD' De Tullio
Grant Edwards wrote: >> As for not being able to see the difference between a hyphen and an >> EN- dash, or minus sign, or whatever it is, yes but they are very >> similar looking glyphs in virtually ever modern font. It would take a >> good eye to see the difference between (say) ??? ??? and -. >

Re: subtraction is giving me a syntax error

2010-03-16 Thread Grant Edwards
On 2010-03-16, Steven D'Aprano wrote: >> Though it may not be Microsoft Word, I think I'd still maintain that >> an editor where you can't see a ctrl-Z or tell the difference between >> an ASCII minus and a windows-codepage-whatever isn't a very good >> programmer's editor. > > Regarding ctrl-Z (

Re: subtraction is giving me a syntax error

2010-03-16 Thread Steven D'Aprano
On Mon, 15 Mar 2010 22:56:19 +, Grant Edwards wrote: > On 2010-03-15, Steven D'Aprano > wrote: >> On Mon, 15 Mar 2010 18:09:29 +, Grant Edwards wrote: >> Delete the character between "y_diff" and "H" and replace it with a plain ASCII subtraction sign. >>> >>> I think somebody n

Re: subtraction is giving me a syntax error

2010-03-15 Thread Grant Edwards
On 2010-03-15, Steven D'Aprano wrote: > On Mon, 15 Mar 2010 18:09:29 +, Grant Edwards wrote: > >>> 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 prog

Re: subtraction is giving me a syntax error

2010-03-15 Thread John Machin
On Mar 16, 5:43 am, Baptiste Carvello wrote: > Joel Pendery a écrit : > > 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 declare

Re: subtraction is giving me a syntax error

2010-03-15 Thread Steven D'Aprano
On Mon, 15 Mar 2010 18:09:29 +, Grant Edwards wrote: >> 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. ;) I've had this error myself

Re: subtraction is giving me a syntax error

2010-03-15 Thread Baptiste Carvello
Joel Pendery a écrit : 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. Even though I have deleted some lines before it and this line is no lo

Re: subtraction is giving me a syntax error

2010-03-15 Thread Grant Edwards
On 2010-03-15, Philip Semanchuk 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 >

Re: subtraction is giving me a syntax error

2010-03-15 Thread MRAB
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. Even though I have deleted some lines before it and this line is no longe

Re: subtraction is giving me a syntax error

2010-03-15 Thread Philip Semanchuk
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. Even though I have deleted some lines befo

Re: subtraction is giving me a syntax error

2010-03-15 Thread Benjamin Kaplan
On Mon, 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. > > Even though I have dele

Re: subtraction is giving me a syntax error

2010-03-15 Thread Richard Brodie
"Joel Pendery" wrote in message news:56597268-3472-4fd9-a829-6d9cf51cf...@e7g2000yqf.googlegroups.com... >> y_diff = y_diff-H > > Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no > encoding declared. That's likely an en-dash, not a minus sign. -- http://mail.python.org/ma

subtraction is giving me a syntax error

2010-03-15 Thread Joel Pendery
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. Even though I have deleted some lines before it and this line is no longer line 70, I am still