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 cito
Recipients
Date 2005-02-03.13:11:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
a = 'print "Hello, World"'
u = '# -*- coding: utf-8 -*-\n' + a

print compile(a, '<string>', 'exec') # ok
print compile(u, '<string>', 'exec') # ok
print compile(unicode(a), '<string>', 'exec') # ok
print compile(unicode(u), '<string>', 'exec') # error

# The last line gives a SystemError.
# Think this is a bug.
History
Date User Action Args
2007-08-23 14:29:18adminlinkissue1115379 messages
2007-08-23 14:29:18admincreate