homepage

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 brett.cannon
Recipients brett.cannon
Date 2008年12月11日.06:54:06
SpamBayes Score 4.152588e-07
Marked as misclassified No
Message-id <1228978447.23.0.301216613627.issue4628@psf.upfronthosting.co.za>
In-reply-to
Content
Passing in bytes to compile() works well for letting the parser handle
the decoding of a file when an encoding is specified, but it doesn't
take care of universal newlines::
 >>> source = b'a = 1\r\nb = 2\r\n'
 >>> compile(source, '<test>', 'exec')
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "<test>", line 1
 a = 1
 ^
 SyntaxError: invalid syntax
History
Date User Action Args
2008年12月11日 06:54:07brett.cannonsetrecipients: + brett.cannon
2008年12月11日 06:54:07brett.cannonsetmessageid: <1228978447.23.0.301216613627.issue4628@psf.upfronthosting.co.za>
2008年12月11日 06:54:06brett.cannonlinkissue4628 messages
2008年12月11日 06:54:06brett.cannoncreate

AltStyle によって変換されたページ (->オリジナル) /