mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Mass checkin of universal newline support.
Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
This commit is contained in:
parent
dcd2dc2fff
commit
7b8c7546eb
15 changed files with 390 additions and 35 deletions
7
README
7
README
|
@ -811,6 +811,13 @@ Modules/getpath.o.
|
|||
--with-pydebug: Enable additional debugging code to help track down
|
||||
memory management problems. This allows printing a list of all
|
||||
live objects when the interpreter terminates.
|
||||
|
||||
--with(out)-universal-newlines: enable reading of text files with
|
||||
foreign newline convention (default: enabled). In other words,
|
||||
any of \r, \n or \r\n is acceptable as end-of-line character.
|
||||
If enabled import and execfile will automatically accept any newline
|
||||
in files. Python code can open a file with open(file, 'U') to
|
||||
read it in universal newline mode.
|
||||
|
||||
|
||||
Building for multiple architectures (using the VPATH feature)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue