This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sven.siegmund
Recipients sven.siegmund
Date 2008-05-11.22:49:45
SpamBayes Score 0.0017821058
Marked as misclassified No
Message-id <1210546189.14.0.555715055472.issue2827@psf.upfronthosting.co.za>
In-reply-to
Content
I have a source code which IDLE 3.0a5 cannot parse, but Python 3.0a5 
can (also attached): 

#!/usr/bin/python
# -*- coding: utf-8 -*-

def načtiSlovník(zdroj='slovník.txt'):
    soubor = open(zdroj, mode='r', encoding='utf_8')
    řádky = soubor.readlines()
    for řádek in řádky:
        print(řádek, end='')

načtiSlovník()
# End of source code


I have set up Default Source Encoding to UTF-8 in IDLE's general 
configuration. Still, when I open that source code and try to run it, 
IDLE complains about "invalid character in identifier" and highlights 
"zdroj" red in the first line (sic!). 

However, when I run the source code from command line (by "python 
<filename>"), it gets executed well and does what it shall do. 

I should probably add, that I have installed py3k:62932M, May 9 2008, 
16:23:11 [MSC v.1500 32 bit (Intel)] on win32. I use Windows XP SP 3. 
IDLE uses Tk version 8.4
History
Date User Action Args
2008-05-11 22:49:49sven.siegmundsetspambayes_score: 0.00178211 -> 0.0017821058
recipients: + sven.siegmund
2008-05-11 22:49:49sven.siegmundsetspambayes_score: 0.00178211 -> 0.00178211
messageid: <1210546189.14.0.555715055472.issue2827@psf.upfronthosting.co.za>
2008-05-11 22:49:47sven.siegmundlinkissue2827 messages
2008-05-11 22:49:46sven.siegmundcreate