Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Python parser problem

Reply
Thread Tools

Re: Python parser problem

 
 
Chris Angelico
Guest
Posts: n/a
 
      12-13-2012
On Fri, Dec 14, 2012 at 6:12 AM, RCU <> wrote:
> Dave,
> Thanks for the reply.
> The script was originally edited on Windows with proper \r\n endings,


It's worth noting that many Windows-based editors and interpreters are
quite happy with \n line endings. You may be able to save yourself
some trouble by switching everything to Unix newlines.

ChrisA
 
Reply With Quote
 
 
 
 
Paul Rudin
Guest
Posts: n/a
 
      12-14-2012
Chris Angelico <> writes:

> On Fri, Dec 14, 2012 at 6:12 AM, RCU <> wrote:
>> Dave,
>> Thanks for the reply.
>> The script was originally edited on Windows with proper \r\n endings,

>
> It's worth noting that many Windows-based editors and interpreters are
> quite happy with \n line endings. You may be able to save yourself
> some trouble by switching everything to Unix newlines.


.... and in particular emacs for windows works well.

(holy wars ensue...)

 
Reply With Quote
 
 
 
 
Chris Angelico
Guest
Posts: n/a
 
      12-14-2012
On Fri, Dec 14, 2012 at 6:30 PM, Paul Rudin <> wrote:
> Chris Angelico <> writes:
>
>> On Fri, Dec 14, 2012 at 6:12 AM, RCU <> wrote:
>>> Dave,
>>> Thanks for the reply.
>>> The script was originally edited on Windows with proper \r\n endings,

>>
>> It's worth noting that many Windows-based editors and interpreters are
>> quite happy with \n line endings. You may be able to save yourself
>> some trouble by switching everything to Unix newlines.

>
> ... and in particular emacs for windows works well.
>
> (holy wars ensue...)


So do lots of others. In fact, the only editor I've seen that
consistently fails is Notepad.

Actually... that sentence stands alone. The only editor I've seen that
consistently fails is Notepad.

(holy wars are deflected into heaping scorn on an Acceptable Target)

ChrisA
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
import parser does not import parser.py in same dir on win Joel Hedlund Python 0 11-11-2006 11:34 AM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57