The documentation of line ending conventions is
misleading when embedding Python.
The only documentation I can find on line endings is in
the language reference - section 2.1.2 "Physical
Lines". This describes a physical line as being
terminated with the platform line terminator.
When referring to source files, this is wrong, as
universal newline support now means that any of CR, LF,
or CRLF is a valid line terminator on all platforms.
When embedding (via something like PyRun_SimpleString)
a C-level newline terminator (ie, "\n") is the line
terminator.
I attach a suggested patch to the ref\ref2.tex
documentation file (patch against CVS HEAD as at 29th Jan).
|