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
682d7e0e
Kaydet (Commit)
682d7e0e
authored
Eki 06, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix errors found by "make suspicious".
üst
fa4f7f97
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
28 deletions
+30
-28
apiref.rst
Doc/distutils/apiref.rst
+1
-1
extending.rst
Doc/extending/extending.rst
+1
-1
library.rst
Doc/faq/library.rst
+1
-1
windows.rst
Doc/faq/windows.rst
+1
-1
cporting.rst
Doc/howto/cporting.rst
+4
-4
argparse.rst
Doc/library/argparse.rst
+7
-7
datetime.rst
Doc/library/datetime.rst
+1
-1
functions.rst
Doc/library/functions.rst
+7
-7
io.rst
Doc/library/io.rst
+1
-1
optparse.rst
Doc/library/optparse.rst
+1
-1
subprocess.rst
Doc/library/subprocess.rst
+2
-0
wsgiref.rst
Doc/library/wsgiref.rst
+1
-1
executionmodel.rst
Doc/reference/executionmodel.rst
+1
-1
expressions.rst
Doc/reference/expressions.rst
+1
-1
No files found.
Doc/distutils/apiref.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -1845,7 +1845,7 @@ This module supplies the abstract base class :class:`Command`.
...
@@ -1845,7 +1845,7 @@ This module supplies the abstract base class :class:`Command`.
to your setup.py, and later::
to your setup.py, and later::
cmdclass = {'build_py':build_py}
cmdclass = {'build_py':
build_py}
to the invocation of setup().
to the invocation of setup().
...
...
Doc/extending/extending.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -162,7 +162,7 @@ information about the cause of the error to be lost: most operations can fail
...
@@ -162,7 +162,7 @@ information about the cause of the error to be lost: most operations can fail
for a variety of reasons.)
for a variety of reasons.)
To ignore an exception set by a function call that failed, the exception
To ignore an exception set by a function call that failed, the exception
c
:
ondition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The only
condition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The only
time C code should call :c:func:`PyErr_Clear` is if it doesn't want to pass the
time C code should call :c:func:`PyErr_Clear` is if it doesn't want to pass the
error on to the interpreter but wants to handle it completely by itself
error on to the interpreter but wants to handle it completely by itself
(possibly by trying something else, or pretending nothing went wrong).
(possibly by trying something else, or pretending nothing went wrong).
...
...
Doc/faq/library.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -460,7 +460,7 @@ To rename a file, use ``os.rename(old_path, new_path)``.
...
@@ -460,7 +460,7 @@ To rename a file, use ``os.rename(old_path, new_path)``.
To truncate a file, open it using ``f = open(filename, "rb+")``, and use
To truncate a file, open it using ``f = open(filename, "rb+")``, and use
``f.truncate(offset)``; offset defaults to the current seek position. There's
``f.truncate(offset)``; offset defaults to the current seek position. There's
also ``
`
os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
also ``os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
``fd`` is the file descriptor (a small integer).
``fd`` is the file descriptor (a small integer).
The :mod:`shutil` module also contains a number of functions to work on files
The :mod:`shutil` module also contains a number of functions to work on files
...
...
Doc/faq/windows.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -598,7 +598,7 @@ Warning about CTL3D32 version from installer
...
@@ -598,7 +598,7 @@ Warning about CTL3D32 version from installer
The Python installer issues a warning like this::
The Python installer issues a warning like this::
This version uses
``CTL3D32.DLL``
which is not the correct version.
This version uses
CTL3D32.DLL
which is not the correct version.
This version is used for windows NT applications only.
This version is used for windows NT applications only.
Tim Peters:
Tim Peters:
...
...
Doc/howto/cporting.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -47,12 +47,12 @@ Python 3.0's :func:`str` (``PyString_*`` functions in C) type is equivalent to
...
@@ -47,12 +47,12 @@ Python 3.0's :func:`str` (``PyString_*`` functions in C) type is equivalent to
2.x's :func:`unicode` (``PyUnicode_*``). The old 8-bit string type has become
2.x's :func:`unicode` (``PyUnicode_*``). The old 8-bit string type has become
:func:`bytes`. Python 2.6 and later provide a compatibility header,
:func:`bytes`. Python 2.6 and later provide a compatibility header,
:file:`bytesobject.h`, mapping ``PyBytes`` names to ``PyString`` ones. For best
:file:`bytesobject.h`, mapping ``PyBytes`` names to ``PyString`` ones. For best
c
:
ompatibility with 3.0, :c:type:`PyUnicode` should be used for textual data and
compatibility with 3.0, :c:type:`PyUnicode` should be used for textual data and
:c:type:`PyBytes` for binary data. It's also important to remember that
:c:type:`PyBytes` for binary data. It's also important to remember that
:c:type:`PyBytes` and :c:type:`PyUnicode` in 3.0 are not interchangeable like
:c:type:`PyBytes` and :c:type:`PyUnicode` in 3.0 are not interchangeable like
:c:type:`PyString` and :c:type:`PyString` are in 2.x. The following example
shows
:c:type:`PyString` and :c:type:`PyString` are in 2.x. The following example
best practices with regards to :c:type:`PyUnicode`, :c:type:`PyString`, and
shows best practices with regards to :c:type:`PyUnicode`, :c:type:`PyString`,
:c:type:`PyBytes`. ::
and
:c:type:`PyBytes`. ::
#include "stdlib.h"
#include "stdlib.h"
#include "Python.h"
#include "Python.h"
...
...
Doc/library/argparse.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -737,14 +737,14 @@ values are:
...
@@ -737,14 +737,14 @@ values are:
* N (an integer). N args from the command-line will be gathered together into a
* N (an integer). N args from the command-line will be gathered together into a
list. For example::
list. For example::
>>> parser = argparse.ArgumentParser()
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', nargs=2)
>>> parser.add_argument('--foo', nargs=2)
>>> parser.add_argument('bar', nargs=1)
>>> parser.add_argument('bar', nargs=1)
>>> parser.parse_args('c --foo a b'.split())
>>> parser.parse_args('c --foo a b'.split())
Namespace(bar=['c'], foo=['a', 'b'])
Namespace(bar=['c'], foo=['a', 'b'])
Note that ``nargs=1`` produces a list of one item. This is different from
Note that ``nargs=1`` produces a list of one item. This is different from
the default, in which the item is produced by itself.
the default, in which the item is produced by itself.
* ``'?'``. One arg will be consumed from the command-line if possible, and
* ``'?'``. One arg will be consumed from the command-line if possible, and
produced as a single item. If no command-line arg is present, the value from
produced as a single item. If no command-line arg is present, the value from
...
...
Doc/library/datetime.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -979,7 +979,7 @@ Instance methods:
...
@@ -979,7 +979,7 @@ Instance methods:
d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
``None`` or :meth:`dst`
`
returns ``None``, :attr:`tm_isdst` is set to ``-1``;
``None`` or :meth:`dst` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
else :attr:`tm_isdst` is set to ``0``.
else :attr:`tm_isdst` is set to ``0``.
...
...
Doc/library/functions.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -634,9 +634,9 @@ are always available. They are listed here in alphabetical order.
...
@@ -634,9 +634,9 @@ are always available. They are listed here in alphabetical order.
The optional keyword-only *key* argument specifies a one-argument ordering
The optional keyword-only *key* argument specifies a one-argument ordering
function like that used for :meth:`list.sort`.
function like that used for :meth:`list.sort`.
If multiple items are maximal, the function returns the first one
encountered.
If multiple items are maximal, the function returns the first one
This is consistent with other sort-stability preserving tools such a
s
encountered. This is consistent with other sort-stability preserving tool
s
``sorted(iterable, key=keyfunc, reverse=True)[0]
` and
such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`
` and
``heapq.nlargest(1, iterable, key=keyfunc)``.
``heapq.nlargest(1, iterable, key=keyfunc)``.
.. function:: memoryview(obj)
.. function:: memoryview(obj)
...
@@ -655,10 +655,10 @@ are always available. They are listed here in alphabetical order.
...
@@ -655,10 +655,10 @@ are always available. They are listed here in alphabetical order.
The optional keyword-only *key* argument specifies a one-argument ordering
The optional keyword-only *key* argument specifies a one-argument ordering
function like that used for :meth:`list.sort`.
function like that used for :meth:`list.sort`.
If multiple items are minimal, the function returns the first one
encountered.
If multiple items are minimal, the function returns the first one
This is consistent with other sort-stability preserving tools such a
s
encountered. This is consistent with other sort-stability preserving tool
s
``sorted(iterable, key=keyfunc)[0]` and
such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1,
``heapq.nsmallest(1,
iterable, key=keyfunc)``.
iterable, key=keyfunc)``.
.. function:: next(iterator[, default])
.. function:: next(iterator[, default])
...
...
Doc/library/io.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -179,7 +179,7 @@ The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream
...
@@ -179,7 +179,7 @@ The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream
:class:`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are
:class:`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are
readable, writable, and both readable and writable. :class:`BufferedRandom`
readable, writable, and both readable and writable. :class:`BufferedRandom`
provides a buffered interface to random access streams. Another
provides a buffered interface to random access streams. Another
:class`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
:class
:
`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
bytes.
bytes.
The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with
The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with
...
...
Doc/library/optparse.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -1212,7 +1212,7 @@ error message.
...
@@ -1212,7 +1212,7 @@ error message.
:func:`float` and :func:`complex`, with similar error-handling.
:func:`float` and :func:`complex`, with similar error-handling.
``"choice"`` options are a subtype of ``"string"`` options. The
``"choice"`` options are a subtype of ``"string"`` options. The
:attr:`~Option.choices`
`
option attribute (a sequence of strings) defines the
:attr:`~Option.choices` option attribute (a sequence of strings) defines the
set of allowed option arguments. :func:`optparse.check_choice` compares
set of allowed option arguments. :func:`optparse.check_choice` compares
user-supplied option arguments against this master list and raises
user-supplied option arguments against this master list and raises
:exc:`OptionValueError` if an invalid string is given.
:exc:`OptionValueError` if an invalid string is given.
...
...
Doc/library/subprocess.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -271,6 +271,7 @@ This module also defines four shortcut functions:
...
@@ -271,6 +271,7 @@ This module also defines four shortcut functions:
.. function:: getstatusoutput(cmd)
.. function:: getstatusoutput(cmd)
Return ``(status, output)`` of executing *cmd* in a shell.
Return ``(status, output)`` of executing *cmd* in a shell.
Execute the string *cmd* in a shell with :func:`os.popen` and return a 2-tuple
Execute the string *cmd* in a shell with :func:`os.popen` and return a 2-tuple
...
@@ -290,6 +291,7 @@ This module also defines four shortcut functions:
...
@@ -290,6 +291,7 @@ This module also defines four shortcut functions:
.. function:: getoutput(cmd)
.. function:: getoutput(cmd)
Return output (stdout and stderr) of executing *cmd* in a shell.
Return output (stdout and stderr) of executing *cmd* in a shell.
Like :func:`getstatusoutput`, except the exit status is ignored and the return
Like :func:`getstatusoutput`, except the exit status is ignored and the return
...
...
Doc/library/wsgiref.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -708,7 +708,7 @@ This is a working "Hello World" WSGI application::
...
@@ -708,7 +708,7 @@ This is a working "Hello World" WSGI application::
# use a function (note that you're not limited to a function, you can
# use a function (note that you're not limited to a function, you can
# use a class for example). The first argument passed to the function
# use a class for example). The first argument passed to the function
# is a dictionary containing CGI-style envrironment variables and the
# is a dictionary containing CGI-style envrironment variables and the
# second variable is the callable object (see
:pep:`333`)
# second variable is the callable object (see
PEP 333).
def hello_world_app(environ, start_response):
def hello_world_app(environ, start_response):
status = b'200 OK' # HTTP Status
status = b'200 OK' # HTTP Status
headers = [(b'Content-type', b'text/plain; charset=utf-8')] # HTTP Headers
headers = [(b'Content-type', b'text/plain; charset=utf-8')] # HTTP Headers
...
...
Doc/reference/executionmodel.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -87,7 +87,7 @@ The following constructs bind names: formal parameters to functions,
...
@@ -87,7 +87,7 @@ The following constructs bind names: formal parameters to functions,
:keyword:`import` statements, class and function definitions (these bind the
:keyword:`import` statements, class and function definitions (these bind the
class or function name in the defining block), and targets that are identifiers
class or function name in the defining block), and targets that are identifiers
if occurring in an assignment, :keyword:`for` loop header, or after
if occurring in an assignment, :keyword:`for` loop header, or after
:keyword:`as` in a :keyword:`with` statement or :keyword
.
`except` clause.
:keyword:`as` in a :keyword:`with` statement or :keyword
:
`except` clause.
The :keyword:`import` statement
The :keyword:`import` statement
of the form ``from ... import *`` binds all names defined in the imported
of the form ``from ... import *`` binds all names defined in the imported
module, except those beginning with an underscore. This form may only be used
module, except those beginning with an underscore. This form may only be used
...
...
Doc/reference/expressions.rst
Dosyayı görüntüle @
682d7e0e
...
@@ -1063,7 +1063,7 @@ and therefore not exactly equal to ``Decimal('1.1')`` which is. When
...
@@ -1063,7 +1063,7 @@ and therefore not exactly equal to ``Decimal('1.1')`` which is. When
cross-type comparison is not supported, the comparison method returns
cross-type comparison is not supported, the comparison method returns
``NotImplemented``. This can create the illusion of non-transitivity between
``NotImplemented``. This can create the illusion of non-transitivity between
supported cross-type comparisons and unsupported comparisons. For example,
supported cross-type comparisons and unsupported comparisons. For example,
``Decimal(2) == 2`` and `2 == float(2)`` but ``Decimal(2) != float(2)``.
``Decimal(2) == 2`` and `
`
2 == float(2)`` but ``Decimal(2) != float(2)``.
.. _membership-test-details:
.. _membership-test-details:
...
...
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