Does Python 3.1 accept \r\n in compile()?
Terry Reedy
tjreedy at udel.edu
Wed Dec 29 15:14:45 EST 2010
On 12/29/2010 2:31 PM, Terry Reedy wrote:
> "Changed in version 3.2: Allowed use of Windows and Mac newlines. Also
> input in 'exec' mode does not have to end in a newline anymore. Added
> the optimize parameter."
Retest shows that above is correct.
>>> compile("print(999)\r\n", "blah", "exec")
<code object <module> at 0x00F5EC50, file "blah", line 1>
For most development purposes (not just yours), 3.2b2 is already better
than 3.1.
Terry Jan Reedy
More information about the Python-list
mailing list