mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#15543: glossary entry for and 'universal newlines', and links to it.
Patch by Chris Jerdonek.
This commit is contained in:
parent
f748a3773f
commit
1b00f25bf9
13 changed files with 77 additions and 23 deletions
|
@ -600,6 +600,13 @@ Glossary
|
|||
object has a type. An object's type is accessible as its
|
||||
:attr:`__class__` attribute or can be retrieved with ``type(obj)``.
|
||||
|
||||
universal newlines
|
||||
A manner of interpreting text streams in which all of the following are
|
||||
recognized as ending a line: the Unix end-of-line convention ``'\n'``,
|
||||
the Windows convention ``'\r\n'``, and the old Macintosh convention
|
||||
``'\r'``. See :pep:`278` and :pep:`3116`, as well as
|
||||
:func:`str.splitlines` for an additional use.
|
||||
|
||||
view
|
||||
The objects returned from :meth:`dict.keys`, :meth:`dict.values`, and
|
||||
:meth:`dict.items` are called dictionary views. They are lazy sequences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue