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
93a56cdc
Kaydet (Commit)
93a56cdc
authored
Eki 30, 2014
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Doc: fix default role usage (except in unittest mock docs)
üst
aea7f4a8
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
25 additions
and
25 deletions
+25
-25
exceptions.rst
Doc/c-api/exceptions.rst
+1
-1
examples.rst
Doc/distutils/examples.rst
+5
-5
pyporting.rst
Doc/howto/pyporting.rst
+1
-1
ctypes.rst
Doc/library/ctypes.rst
+1
-1
enum.rst
Doc/library/enum.rst
+1
-1
multiprocessing.rst
Doc/library/multiprocessing.rst
+4
-4
pickle.rst
Doc/library/pickle.rst
+1
-1
poplib.rst
Doc/library/poplib.rst
+1
-1
sys.rst
Doc/library/sys.rst
+1
-1
test.rst
Doc/library/test.rst
+3
-3
xmlrpc.server.rst
Doc/library/xmlrpc.server.rst
+2
-2
inputoutput.rst
Doc/tutorial/inputoutput.rst
+2
-2
3.0.rst
Doc/whatsnew/3.0.rst
+1
-1
3.3.rst
Doc/whatsnew/3.3.rst
+1
-1
No files found.
Doc/c-api/exceptions.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -111,7 +111,7 @@ NULL pointer for use in a ``return`` statement.
...
@@ -111,7 +111,7 @@ NULL pointer for use in a ``return`` statement.
.. c:function:: PyObject* PyErr_FormatV(PyObject *exception, const char *format, va_list vargs)
.. c:function:: PyObject* PyErr_FormatV(PyObject *exception, const char *format, va_list vargs)
Same as :c:func:`PyErr_Format`, but taking a `va_list` argument rather
Same as :c:func:`PyErr_Format`, but taking a
:c:type:
`va_list` argument rather
than a variable number of arguments.
than a variable number of arguments.
.. versionadded:: 3.5
.. versionadded:: 3.5
...
...
Doc/distutils/examples.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -286,20 +286,20 @@ Reading the metadata
...
@@ -286,20 +286,20 @@ Reading the metadata
The :func:`distutils.core.setup` function provides a command-line interface
The :func:`distutils.core.setup` function provides a command-line interface
that allows you to query the metadata fields of a project through the
that allows you to query the metadata fields of a project through the
`
setup.py
` script of a given project::
`
`setup.py`
` script of a given project::
$ python setup.py --name
$ python setup.py --name
distribute
distribute
This call reads the `
name
` metadata by running the
This call reads the `
`name`
` metadata by running the
:func:`distutils.core.setup` function. Although, when a source or binary
:func:`distutils.core.setup` function. Although, when a source or binary
distribution is created with Distutils, the metadata fields are written
distribution is created with Distutils, the metadata fields are written
in a static file called :file:`PKG-INFO`. When a Distutils-based project is
in a static file called :file:`PKG-INFO`. When a Distutils-based project is
installed in Python, the :file:`PKG-INFO` file is copied alongside the modules
installed in Python, the :file:`PKG-INFO` file is copied alongside the modules
and packages of the distribution under :file:`NAME-VERSION-pyX.X.egg-info`,
and packages of the distribution under :file:`NAME-VERSION-pyX.X.egg-info`,
where `
NAME` is the name of the project, `VERSION
` its version as defined
where `
`NAME`` is the name of the project, ``VERSION`
` its version as defined
in the Metadata, and `
pyX.X
` the major and minor version of Python like
in the Metadata, and `
`pyX.X`
` the major and minor version of Python like
`
2.7` or `3.2
`.
`
`2.7`` or ``3.2`
`.
You can read back this static file, by using the
You can read back this static file, by using the
:class:`distutils.dist.DistributionMetadata` class and its
:class:`distutils.dist.DistributionMetadata` class and its
...
...
Doc/howto/pyporting.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -535,7 +535,7 @@ Update ``map`` for imbalanced input sequences
...
@@ -535,7 +535,7 @@ Update ``map`` for imbalanced input sequences
'''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''
With Python 2, when ``map`` was given more than one input sequence it would pad
With Python 2, when ``map`` was given more than one input sequence it would pad
the shorter sequences with `
None
` values, returning a sequence as long as the
the shorter sequences with `
`None`
` values, returning a sequence as long as the
longest input sequence.
longest input sequence.
With Python 3, if the input sequences to ``map`` are of unequal length, ``map``
With Python 3, if the input sequences to ``map`` are of unequal length, ``map``
...
...
Doc/library/ctypes.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -1032,7 +1032,7 @@ As we can easily check, our array is sorted now::
...
@@ -1032,7 +1032,7 @@ As we can easily check, our array is sorted now::
outside of Python's control (e.g. by the foreign code that calls the
outside of Python's control (e.g. by the foreign code that calls the
callback), ctypes creates a new dummy Python thread on every invocation. This
callback), ctypes creates a new dummy Python thread on every invocation. This
behavior is correct for most purposes, but it means that values stored with
behavior is correct for most purposes, but it means that values stored with
`threading.local` will *not* survive across different callbacks, even when
:class:
`threading.local` will *not* survive across different callbacks, even when
those calls are made from the same C thread.
those calls are made from the same C thread.
.. _ctypes-accessing-values-exported-from-dlls:
.. _ctypes-accessing-values-exported-from-dlls:
...
...
Doc/library/enum.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -401,7 +401,7 @@ whitespace-separated string of names, a sequence of names, a sequence of
...
@@ -401,7 +401,7 @@ whitespace-separated string of names, a sequence of names, a sequence of
2-tuples with key/value pairs, or a mapping (e.g. dictionary) of names to
2-tuples with key/value pairs, or a mapping (e.g. dictionary) of names to
values. The last two options enable assigning arbitrary values to
values. The last two options enable assigning arbitrary values to
enumerations; the others auto-assign increasing integers starting with 1 (use
enumerations; the others auto-assign increasing integers starting with 1 (use
the `
start
` parameter to specify a different starting value). A
the `
`start`
` parameter to specify a different starting value). A
new class derived from :class:`Enum` is returned. In other words, the above
new class derived from :class:`Enum` is returned. In other words, the above
assignment to :class:`Animal` is equivalent to::
assignment to :class:`Animal` is equivalent to::
...
...
Doc/library/multiprocessing.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -1965,18 +1965,18 @@ with the :class:`Pool` class.
...
@@ -1965,18 +1965,18 @@ with the :class:`Pool` class.
.. method:: starmap(func, iterable[, chunksize])
.. method:: starmap(func, iterable[, chunksize])
Like :meth:`map` except that the elements of the
`iterable`
are expected
Like :meth:`map` except that the elements of the
*iterable*
are expected
to be iterables that are unpacked as arguments.
to be iterables that are unpacked as arguments.
Hence an
`iterable` of `[(1,2), (3, 4)]` results in
`[func(1,2),
Hence an
*iterable* of ``[(1,2), (3, 4)]`` results in `
`[func(1,2),
func(3,4)]`.
func(3,4)]`
`
.
.. versionadded:: 3.3
.. versionadded:: 3.3
.. method:: starmap_async(func, iterable[, chunksize[, callback[, error_back]]])
.. method:: starmap_async(func, iterable[, chunksize[, callback[, error_back]]])
A combination of :meth:`starmap` and :meth:`map_async` that iterates over
A combination of :meth:`starmap` and :meth:`map_async` that iterates over
`iterable` of iterables and calls `func`
with the iterables unpacked.
*iterable* of iterables and calls *func*
with the iterables unpacked.
Returns a result object.
Returns a result object.
.. versionadded:: 3.3
.. versionadded:: 3.3
...
...
Doc/library/pickle.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -504,7 +504,7 @@ methods:
...
@@ -504,7 +504,7 @@ methods:
.. method:: object.__getnewargs__()
.. method:: object.__getnewargs__()
This method serve a similar purpose as :meth:`__getnewargs_ex__` but
This method serve a similar purpose as :meth:`__getnewargs_ex__` but
for protocols 2 and newer. It must return a tuple of arguments `
args
`
for protocols 2 and newer. It must return a tuple of arguments `
`args`
`
which will be passed to the :meth:`__new__` method upon unpickling.
which will be passed to the :meth:`__new__` method upon unpickling.
In protocols 4 and newer, :meth:`__getnewargs__` will not be called if
In protocols 4 and newer, :meth:`__getnewargs__` will not be called if
...
...
Doc/library/poplib.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
This module defines a class, :class:`POP3`, which encapsulates a connection to a
This module defines a class, :class:`POP3`, which encapsulates a connection to a
POP3 server and implements the protocol as defined in :rfc:`1939`. The
POP3 server and implements the protocol as defined in :rfc:`1939`. The
:class:`POP3` class supports both the minimal and optional command sets from
:class:`POP3` class supports both the minimal and optional command sets from
:rfc:`1939`. The :class:`POP3` class also supports the `
STLS
` command introduced
:rfc:`1939`. The :class:`POP3` class also supports the `
`STLS`
` command introduced
in :rfc:`2595` to enable encrypted communication on an already established connection.
in :rfc:`2595` to enable encrypted communication on an already established connection.
Additionally, this module provides a class :class:`POP3_SSL`, which provides
Additionally, this module provides a class :class:`POP3_SSL`, which provides
...
...
Doc/library/sys.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -667,7 +667,7 @@ always available.
...
@@ -667,7 +667,7 @@ always available.
an underscore, and are not described here. Regardless of its contents,
an underscore, and are not described here. Regardless of its contents,
:data:`sys.implementation` will not change during a run of the interpreter,
:data:`sys.implementation` will not change during a run of the interpreter,
nor between implementation versions. (It may change between Python
nor between implementation versions. (It may change between Python
language versions, however.) See
`PEP
421` for more information.
language versions, however.) See
:pep:`
421` for more information.
.. versionadded:: 3.3
.. versionadded:: 3.3
...
...
Doc/library/test.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -85,7 +85,7 @@ A basic boilerplate is often used::
...
@@ -85,7 +85,7 @@ A basic boilerplate is often used::
This code pattern allows the testing suite to be run by :mod:`test.regrtest`,
This code pattern allows the testing suite to be run by :mod:`test.regrtest`,
on its own as a script that supports the :mod:`unittest` CLI, or via the
on its own as a script that supports the :mod:`unittest` CLI, or via the
`
python -m unittest
` CLI.
`
`python -m unittest`
` CLI.
The goal for regression testing is to try to break code. This leads to a few
The goal for regression testing is to try to break code. This leads to a few
guidelines to be followed:
guidelines to be followed:
...
@@ -141,9 +141,9 @@ guidelines to be followed:
...
@@ -141,9 +141,9 @@ guidelines to be followed:
arg = (1, 2, 3)
arg = (1, 2, 3)
When using this pattern, remember that all classes that inherit from
When using this pattern, remember that all classes that inherit from
`unittest.TestCase` are run as tests. The
`Mixin` class in the example above
:class:`unittest.TestCase` are run as tests. The :class:
`Mixin` class in the example above
does not have any data and so can't be run by itself, thus it does not
does not have any data and so can't be run by itself, thus it does not
inherit from `unittest.TestCase`.
inherit from
:class:
`unittest.TestCase`.
.. seealso::
.. seealso::
...
...
Doc/library/xmlrpc.server.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -184,8 +184,8 @@ server::
...
@@ -184,8 +184,8 @@ server::
# Print list of available methods
# Print list of available methods
print(s.system.listMethods())
print(s.system.listMethods())
The following example included in
`Lib/xmlrpc/server.py` module shows a server
The following example included in
the :file:`Lib/xmlrpc/server.py` module shows
allowing dotted names and registering a multicall function.
a
server a
llowing dotted names and registering a multicall function.
.. warning::
.. warning::
...
...
Doc/tutorial/inputoutput.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -323,8 +323,8 @@ first::
...
@@ -323,8 +323,8 @@ first::
18
18
``f.tell()`` returns an integer giving the file object's current position in the file
``f.tell()`` returns an integer giving the file object's current position in the file
represented as number of bytes from the beginning of the file when in
`binary mode`
and
represented as number of bytes from the beginning of the file when in
binary mode
and
an opaque number when in
`text mode`
.
an opaque number when in
text mode
.
To change the file object's position, use ``f.seek(offset, from_what)``. The position is computed
To change the file object's position, use ``f.seek(offset, from_what)``. The position is computed
from adding *offset* to a reference point; the reference point is selected by
from adding *offset* to a reference point; the reference point is selected by
...
...
Doc/whatsnew/3.0.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -164,7 +164,7 @@ Some well-known APIs no longer return lists:
...
@@ -164,7 +164,7 @@ Some well-known APIs no longer return lists:
If the input sequences are not of equal length, :func:`map` will
If the input sequences are not of equal length, :func:`map` will
stop at the termination of the shortest of the sequences. For full
stop at the termination of the shortest of the sequences. For full
compatibility with `map` from Python 2.x, also wrap the sequences in
compatibility with
:func:
`map` from Python 2.x, also wrap the sequences in
:func:`itertools.zip_longest`, e.g. ``map(func, *sequences)`` becomes
:func:`itertools.zip_longest`, e.g. ``map(func, *sequences)`` becomes
``list(map(func, itertools.zip_longest(*sequences)))``.
``list(map(func, itertools.zip_longest(*sequences)))``.
...
...
Doc/whatsnew/3.3.rst
Dosyayı görüntüle @
93a56cdc
...
@@ -2080,7 +2080,7 @@ Add a new :class:`types.MappingProxyType` class: Read-only proxy of a mapping.
...
@@ -2080,7 +2080,7 @@ Add a new :class:`types.MappingProxyType` class: Read-only proxy of a mapping.
(:issue:`14386`)
(:issue:`14386`)
The new functions
`types.new_class` and
`types.prepare_class` provide support
The new functions
:func:`types.new_class` and :func:
`types.prepare_class` provide support
for PEP 3115 compliant dynamic type creation. (:issue:`14588`)
for PEP 3115 compliant dynamic type creation. (:issue:`14588`)
...
...
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