10/01/21 02:24:29 F27GzTAg
>>859
確かに予約語やそれに近しい略語は使うべきではありませんでした、すみません。
>>860,>>861
ありがとうございます。このコードはIPython/iplib.pyのcompile_command()以下
source=source.encode(self.stdin_encoding)
if source[:1] in [' ', '\t']:
source = 'if 1:\n%s' % source
if source[:1] in [u' ', u'\t']:
source = u'if 1:\n%s' % source
source = '# coding: %s\n%s' % (self.stdin_encoding, source)
であってますか?リンク先の
+ source = '# coding: %s\n%s' % (self.stdin_encoding, source)
の+は追加の意味で、コードではないですよね?