Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Chris Angelico
On Sat, Feb 1, 2014 at 7:51 PM, Terry Reedy wrote: > I should have added 'to C itself', as the string terminator. Oh, right. Yes, in that sense \0 is special. It's still wrong that an incoming text string gets interpreted as code, but that's probably just a consequence of the jump from Python to

Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Terry Reedy
On 2/1/2014 2:26 AM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 4:46 PM, Terry Reedy wrote: On 1/31/2014 10:36 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: I think that some years ago I heard about a variation on UTF-8 (Microsoft?) where codepoint U+ is encod

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 4:46 PM, Terry Reedy wrote: > On 1/31/2014 10:36 PM, Chris Angelico wrote: >> >> On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: >>> >>> I think that some years ago I heard about a variation on UTF-8 >>> (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the >>

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 10:36 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: I think that some years ago I heard about a variation on UTF-8 (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the null byte can be used as the string terminator. I had a look on Wikipe

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 8:52 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py caused this message UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: invalid start byte So... something's interpreti

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: > I think that some years ago I heard about a variation on UTF-8 > (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the > null byte can be used as the string terminator. > > I had a look on Wikipedia found this: > > http://en.wikipedia

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread MRAB
On 2014-02-01 01:52, Chris Angelico wrote: On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py caused this message UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: invalid start byte So... something's interpretin

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: > H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py > caused this message > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: > invalid start byte So... something's interpreting \0 as codepoint U+ (which it shou

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 2:51 PM, Peter Otten wrote: rpuc...@cox.net wrote: Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. import idlelib.idle Exception in Tkinter callback Traceback (most rec

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Peter Otten
rpuc...@cox.net wrote: > Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 > bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more > information. import idlelib.idle > Exception in Tkinter callback > Traceback (most recent call last): > File "C:\Py

Python shell wont open idle or an exisiting py file

2014-01-31 Thread rpucci2
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import idlelib.idle Exception in Tkinter callback Traceback (most recent call last): File "C:\Python33\lib\tkinter\__init__.py", lin