Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c7b8f809
Kaydet (Commit)
c7b8f809
authored
Agu 15, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#15543: reflow paragraphs.
üst
5618aaaa
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
49 deletions
+47
-49
functions.rst
Doc/library/functions.rst
+9
-10
io.rst
Doc/library/io.rst
+9
-11
subprocess.rst
Doc/library/subprocess.rst
+5
-6
urllib.rst
Doc/library/urllib.rst
+11
-10
2.3.rst
Doc/whatsnew/2.3.rst
+6
-7
2.5.rst
Doc/whatsnew/2.5.rst
+6
-5
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/functions.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -864,16 +864,15 @@ available. They are listed here in alphabetical order.
...
@@ -864,16 +864,15 @@ available. They are listed here in alphabetical order.
In addition to the standard :c:func:`fopen` values *mode* may be ``'U'`` or
In addition to the standard :c:func:`fopen` values *mode* may be ``'U'`` or
``'rU'``. Python is usually built with :term:`universal newlines` support;
``'rU'``. Python is usually built with :term:`universal newlines` support;
supplying
supplying ``'U'`` opens the file as a text file, but lines may be terminated
``'U'`` opens the file as a text file, but lines may be terminated by any of the
by any of the following: the Unix end-of-line convention ``'\n'``, the
following: the Unix end-of-line convention ``'\n'``, the Macintosh convention
Macintosh convention ``'\r'``, or the Windows convention ``'\r\n'``. All of
``'\r'``, or the Windows convention ``'\r\n'``. All of these external
these external representations are seen as ``'\n'`` by the Python program.
representations are seen as ``'\n'`` by the Python program. If Python is built
If Python is built without universal newlines support a *mode* with ``'U'``
without universal newlines support a *mode* with ``'U'`` is the same as normal
is the same as normal text mode. Note that file objects so opened also have
text mode. Note that file objects so opened also have an attribute called
an attribute called :attr:`newlines` which has a value of ``None`` (if no
:attr:`newlines` which has a value of ``None`` (if no newlines have yet been
newlines have yet been seen), ``'\n'``, ``'\r'``, ``'\r\n'``, or a tuple
seen), ``'\n'``, ``'\r'``, ``'\r\n'``, or a tuple containing all the newline
containing all the newline types seen.
types seen.
Python enforces that the mode, after stripping ``'U'``, begins with ``'r'``,
Python enforces that the mode, after stripping ``'U'``, begins with ``'r'``,
``'w'`` or ``'a'``.
``'w'`` or ``'a'``.
...
...
Doc/library/io.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -144,10 +144,9 @@ Module Interface
...
@@ -144,10 +144,9 @@ Module Interface
.. index::
.. index::
single: universal newlines; open() (in module io)
single: universal newlines; open() (in module io)
*newline* controls how :term:`universal newlines` works (it only applies
*newline* controls how :term:`universal newlines` works (it only applies to
to text
text mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``.
mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It
It works as follows:
works as follows:
* On input, if *newline* is ``None``, universal newlines mode is enabled.
* On input, if *newline* is ``None``, universal newlines mode is enabled.
Lines in the input can end in ``'\n'``, ``'\r'``, or ``'\r\n'``, and these
Lines in the input can end in ``'\n'``, ``'\r'``, or ``'\r\n'``, and these
...
@@ -765,13 +764,12 @@ Text I/O
...
@@ -765,13 +764,12 @@ Text I/O
``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It works as follows:
``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It works as follows:
* On input, if *newline* is ``None``, :term:`universal newlines` mode is
* On input, if *newline* is ``None``, :term:`universal newlines` mode is
enabled.
enabled. Lines in the input can end in ``'\n'``, ``'\r'``, or ``'\r\n'``,
Lines in the input can end in ``'\n'``, ``'\r'``, or ``'\r\n'``, and these
and these are translated into ``'\n'`` before being returned to the
are translated into ``'\n'`` before being returned to the caller. If it is
caller. If it is ``''``, universal newlines mode is enabled, but line
``''``, universal newlines mode is enabled, but line endings are returned to
endings are returned to the caller untranslated. If it has any of the
the caller untranslated. If it has any of the other legal values, input
other legal values, input lines are only terminated by the given string,
lines are only terminated by the given string, and the line ending is
and the line ending is returned to the caller untranslated.
returned to the caller untranslated.
* On output, if *newline* is ``None``, any ``'\n'`` characters written are
* On output, if *newline* is ``None``, any ``'\n'`` characters written are
translated to the system default line separator, :data:`os.linesep`. If
translated to the system default line separator, :data:`os.linesep`. If
...
...
Doc/library/subprocess.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -385,12 +385,11 @@ functions.
...
@@ -385,12 +385,11 @@ functions.
.. _side-by-side assembly: http://en.wikipedia.org/wiki/Side-by-Side_Assembly
.. _side-by-side assembly: http://en.wikipedia.org/wiki/Side-by-Side_Assembly
If *universal_newlines* is ``True``, the file objects *stdout* and *stderr* are
If *universal_newlines* is ``True``, the file objects *stdout* and *stderr*
opened as text files in :term:`universal newlines` mode. Lines may be
are opened as text files in :term:`universal newlines` mode. Lines may be
terminated by any of ``'\n'``, the Unix
terminated by any of ``'\n'``, the Unix end-of-line convention, ``'\r'``,
end-of-line convention, ``'\r'``, the old Macintosh convention or ``'\r\n'``, the
the old Macintosh convention or ``'\r\n'``, the Windows convention. All of
Windows convention. All of these external representations are seen as ``'\n'``
these external representations are seen as ``'\n'`` by the Python program.
by the Python program.
.. note::
.. note::
...
...
Doc/library/urllib.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -32,16 +32,17 @@ High-level interface
...
@@ -32,16 +32,17 @@ High-level interface
.. function:: urlopen(url[, data[, proxies]])
.. function:: urlopen(url[, data[, proxies]])
Open a network object denoted by a URL for reading. If the URL does not have a
Open a network object denoted by a URL for reading. If the URL does not
scheme identifier, or if it has :file:`file:` as its scheme identifier, this
have a scheme identifier, or if it has :file:`file:` as its scheme
opens a local file (without :term:`universal newlines`); otherwise it opens a socket to
identifier, this opens a local file (without :term:`universal newlines`);
a server somewhere on the network. If the connection cannot be made the
otherwise it opens a socket to a server somewhere on the network. If the
:exc:`IOError` exception is raised. If all went well, a file-like object is
connection cannot be made the :exc:`IOError` exception is raised. If all
returned. This supports the following methods: :meth:`read`, :meth:`readline`,
went well, a file-like object is returned. This supports the following
:meth:`readlines`, :meth:`fileno`, :meth:`close`, :meth:`info`, :meth:`getcode` and
methods: :meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`fileno`,
:meth:`geturl`. It also has proper support for the :term:`iterator` protocol. One
:meth:`close`, :meth:`info`, :meth:`getcode` and :meth:`geturl`. It also
caveat: the :meth:`read` method, if the size argument is omitted or negative,
has proper support for the :term:`iterator` protocol. One caveat: the
may not read until the end of the data stream; there is no good way to determine
:meth:`read` method, if the size argument is omitted or negative, may not
read until the end of the data stream; there is no good way to determine
that the entire stream from a socket has been read in the general case.
that the entire stream from a socket has been read in the general case.
Except for the :meth:`info`, :meth:`getcode` and :meth:`geturl` methods,
Except for the :meth:`info`, :meth:`getcode` and :meth:`geturl` methods,
...
...
Doc/whatsnew/2.3.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -379,13 +379,12 @@ mark the ends of lines in text files. Unix uses the linefeed (ASCII character
...
@@ -379,13 +379,12 @@ mark the ends of lines in text files. Unix uses the linefeed (ASCII character
10), MacOS uses the carriage return (ASCII character 13), and Windows uses a
10), MacOS uses the carriage return (ASCII character 13), and Windows uses a
two-character sequence of a carriage return plus a newline.
two-character sequence of a carriage return plus a newline.
Python's file objects can now support end of line conventions other than the one
Python's file objects can now support end of line conventions other than the
followed by the platform on which Python is running. Opening a file with the
one followed by the platform on which Python is running. Opening a file with
mode ``'U'`` or ``'rU'`` will open a file for reading in
the mode ``'U'`` or ``'rU'`` will open a file for reading in :term:`universal
:term:`universal newlines` mode.
newlines` mode. All three line ending conventions will be translated to a
All three line ending conventions will be translated to a ``'
\n
'`` in the
``'
\n
'`` in the strings returned by the various file methods such as
strings returned by the various file methods such as :meth:`read` and
:meth:`read` and :meth:`readline`.
:meth:`readline`.
Universal newline support is also used when importing modules and when executing
Universal newline support is also used when importing modules and when executing
a file with the :func:`execfile` function. This means that Python modules can
a file with the :func:`execfile` function. This means that Python modules can
...
...
Doc/whatsnew/2.5.rst
Dosyayı görüntüle @
c7b8f809
...
@@ -1343,11 +1343,12 @@ complete list of changes, or look through the SVN logs for all the details.
...
@@ -1343,11 +1343,12 @@ complete list of changes, or look through the SVN logs for all the details.
* The :mod:`fileinput` module was made more flexible. Unicode filenames are now
* The :mod:`fileinput` module was made more flexible. Unicode filenames are now
supported, and a *mode* parameter that defaults to ``"r"`` was added to the
supported, and a *mode* parameter that defaults to ``"r"`` was added to the
:func:`input` function to allow opening files in binary or :term:`universal newlines`
:func:`input` function to allow opening files in binary or :term:`universal
mode. Another new parameter, *openhook*, lets you use a function other than
newlines` mode. Another new parameter, *openhook*, lets you use a function
:func:`open` to open the input files. Once you're iterating over the set of
other than :func:`open` to open the input files. Once you're iterating over
files, the :class:`FileInput` object's new :meth:`fileno` returns the file
the set of files, the :class:`FileInput` object's new :meth:`fileno` returns
descriptor for the currently opened file. (Contributed by Georg Brandl.)
the file descriptor for the currently opened file. (Contributed by Georg
Brandl.)
* In the :mod:`gc` module, the new :func:`get_count` function returns a 3-tuple
* In the :mod:`gc` module, the new :func:`get_count` function returns a 3-tuple
containing the current collection counts for the three GC generations. This is
containing the current collection counts for the three GC generations. This is
...
...
Misc/ACKS
Dosyayı görüntüle @
c7b8f809
...
@@ -418,6 +418,7 @@ Thomas Jarosch
...
@@ -418,6 +418,7 @@ Thomas Jarosch
Drew Jenkins
Drew Jenkins
Flemming Kjær Jensen
Flemming Kjær Jensen
Philip Jenvey
Philip Jenvey
Chris Jerdonek
Jiba
Jiba
Orjan Johansen
Orjan Johansen
Fredrik Johansson
Fredrik Johansson
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment