On 12/29/2010 2:53 PM, Benjamin Peterson wrote:
Type "help", "copyright", "credits" or "license" for more information.
compile("print(999)\r\n", "blah", "exec")
at 0xb353e8, file "blah", line 1>
I made a mistake in testing. Issue closed. Sorry for the noise.
--
Terry Jan Reedy
__
On 12/29/2010 2:31 PM, Terry Reedy wrote:
In python-list thread "Does Python 3.1 accept \r\n in compile()?"
jmfauth notes that
compile('print(999)\r\n', '', 'exec')
works in 2.7 but not 3.1 (and 3.2 not checked) because 3.1 sees '\r' as
SyntaxError.
I started to respond that this is part of Py3
2010/12/29 Terry Reedy :
> In python-list thread "Does Python 3.1 accept \r\n in compile()?"
> jmfauth notes that
> compile('print(999)\r\n', '', 'exec')
> works in 2.7 but not 3.1 (and 3.2 not checked) because 3.1 sees '\r' as
> SyntaxError.
>
> I started to respond that this is part of Py3 cleanu