467,861 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,861 developers. It's quick & easy.

Linebreak problem on the interactive interpreter Win2k

A few days ago I posted about a problem I was having on Win2k,
regarding a SyntaxError error on the interactive interpreter to
anything I typed. The thread is located here: tinyurl.com/2kk7b

I've mode some progress on this. I noticed that the problem in
fact lies on the line break. If I place a # on the end of the line,
Python has no problem interpreting it:

C:\>python
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
print "This works" # This works
However:
print "This doesn't work" File "<stdin>", line 1
print "This doesn't work"
^
SyntaxError: invalid syntax
The problem is that Python is not interpreting "\r\n" correctly:
import sys; sys.last_value.text # 'print "This doesn\'t work"\r\n'


Can I change this anyhow?
Jonas

Jul 18 '05 #1
  • viewed: 1006
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jonas Galvez | last post: by
147 posts views Thread by Sateesh | last post: by
6 posts views Thread by Avi Berkovich | last post: by
2 posts views Thread by Miki Tebeka | last post: by
10 posts views Thread by notejam | last post: by
reply views Thread by Simon Eves | last post: by
3 posts views Thread by Sal | last post: by
3 posts views Thread by R. Bernstein | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.