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
907a720f
Kaydet (Commit)
907a720f
authored
Şub 22, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
A lot more typo fixes by Ori Avtalion.
üst
a14a4e8b
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
35 additions
and
35 deletions
+35
-35
long.rst
Doc/c-api/long.rst
+1
-1
objbuffer.rst
Doc/c-api/objbuffer.rst
+1
-1
typeobj.rst
Doc/c-api/typeobj.rst
+2
-2
builtdist.rst
Doc/distutils/builtdist.rst
+1
-1
packageindex.rst
Doc/distutils/packageindex.rst
+2
-2
advocacy.rst
Doc/howto/advocacy.rst
+1
-1
doanddont.rst
Doc/howto/doanddont.rst
+1
-1
functional.rst
Doc/howto/functional.rst
+1
-1
sockets.rst
Doc/howto/sockets.rst
+2
-2
codecs.rst
Doc/library/codecs.rst
+1
-1
collections.rst
Doc/library/collections.rst
+2
-2
decimal.rst
Doc/library/decimal.rst
+1
-1
logging.rst
Doc/library/logging.rst
+2
-2
mailbox.rst
Doc/library/mailbox.rst
+2
-2
platform.rst
Doc/library/platform.rst
+1
-1
profile.rst
Doc/library/profile.rst
+1
-1
random.rst
Doc/library/random.rst
+1
-1
re.rst
Doc/library/re.rst
+3
-3
socket.rst
Doc/library/socket.rst
+1
-1
tokenize.rst
Doc/library/tokenize.rst
+1
-1
xml.etree.elementtree.rst
Doc/library/xml.etree.elementtree.rst
+1
-1
compound_stmts.rst
Doc/reference/compound_stmts.rst
+1
-1
expressions.rst
Doc/reference/expressions.rst
+2
-2
index.rst
Doc/reference/index.rst
+1
-1
2.6.rst
Doc/whatsnew/2.6.rst
+2
-2
No files found.
Doc/c-api/long.rst
Dosyayı görüntüle @
907a720f
...
@@ -174,6 +174,6 @@ Long Integer Objects
...
@@ -174,6 +174,6 @@ Long Integer Objects
.. versionadded:: 1.5.2
.. versionadded:: 1.5.2
.. versionchanged:: 2.5
.. versionchanged:: 2.5
For values outside 0..LONG_MAX, both signed and unsigned integers are acc
c
epted.
For values outside 0..LONG_MAX, both signed and unsigned integers are accepted.
Doc/c-api/objbuffer.rst
Dosyayı görüntüle @
907a720f
...
@@ -8,7 +8,7 @@ Buffer Protocol
...
@@ -8,7 +8,7 @@ Buffer Protocol
.. cfunction:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len)
.. cfunction:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len)
Returns a pointer to a read-only memory location us
eable as character-
based
Returns a pointer to a read-only memory location us
able as character-
based
input. The *obj* argument must support the single-segment character buffer
input. The *obj* argument must support the single-segment character buffer
interface. On success, returns ``0``, sets *buffer* to the memory location and
interface. On success, returns ``0``, sets *buffer* to the memory location and
*buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:`TypeError`
*buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:`TypeError`
...
...
Doc/c-api/typeobj.rst
Dosyayı görüntüle @
907a720f
...
@@ -573,7 +573,7 @@ The following three fields only exist if the
...
@@ -573,7 +573,7 @@ The following three fields only exist if the
The :attr:`tp_traverse` pointer is used by the garbage collector to detect
The :attr:`tp_traverse` pointer is used by the garbage collector to detect
reference cycles. A typical implementation of a :attr:`tp_traverse` function
reference cycles. A typical implementation of a :attr:`tp_traverse` function
simply calls :cfunc:`Py_VISIT` on each of the instance's members that are Python
simply calls :cfunc:`Py_VISIT` on each of the instance's members that are Python
objects. For exampe, this is function :cfunc:`local_traverse` from the
objects. For examp
l
e, this is function :cfunc:`local_traverse` from the
:mod:`thread` extension module::
:mod:`thread` extension module::
static int
static int
...
@@ -1160,7 +1160,7 @@ Number Object Structures
...
@@ -1160,7 +1160,7 @@ Number Object Structures
binaryfunc nb_and;
binaryfunc nb_and;
binaryfunc nb_xor;
binaryfunc nb_xor;
binaryfunc nb_or;
binaryfunc nb_or;
coercion nb_coerce; /* Used by the coerce() funtion */
coercion nb_coerce; /* Used by the coerce() fun
c
tion */
unaryfunc nb_int;
unaryfunc nb_int;
unaryfunc nb_long;
unaryfunc nb_long;
unaryfunc nb_float;
unaryfunc nb_float;
...
...
Doc/distutils/builtdist.rst
Dosyayı görüntüle @
907a720f
...
@@ -195,7 +195,7 @@ Distutils configuration files. Various options and sections in the
...
@@ -195,7 +195,7 @@ Distutils configuration files. Various options and sections in the
| | or --- & :option:`maintainer` and |
| | or --- & :option:`maintainer` and |
| | :option:`maintainer_email` |
| | :option:`maintainer_email` |
+------------------------------------------+----------------------------------------------+
+------------------------------------------+----------------------------------------------+
| Copyright | :option:`licen
c
e` |
| Copyright | :option:`licen
s
e` |
+------------------------------------------+----------------------------------------------+
+------------------------------------------+----------------------------------------------+
| Url | :option:`url` |
| Url | :option:`url` |
+------------------------------------------+----------------------------------------------+
+------------------------------------------+----------------------------------------------+
...
...
Doc/distutils/packageindex.rst
Dosyayı görüntüle @
907a720f
...
@@ -53,13 +53,13 @@ the web interface.
...
@@ -53,13 +53,13 @@ the web interface.
The .pypirc file
The .pypirc file
================
================
The format of the :file:`.pypirc` file is
formated
as follows::
The format of the :file:`.pypirc` file is as follows::
[server-login]
[server-login]
repository: <repository-url>
repository: <repository-url>
username: <username>
username: <username>
password: <password>
password: <password>
*repository* can be om
m
itted and defaults to ``http://www.python.org/pypi``.
*repository* can be omitted and defaults to ``http://www.python.org/pypi``.
Doc/howto/advocacy.rst
Dosyayı görüntüle @
907a720f
...
@@ -276,7 +276,7 @@ language, but it boils down to three conditions:
...
@@ -276,7 +276,7 @@ language, but it boils down to three conditions:
product in any way.
product in any way.
* If something goes wrong, you can't sue for damages. Practically all software
* If something goes wrong, you can't sue for damages. Practically all software
licen
c
es contain this condition.
licen
s
es contain this condition.
Notice that you don't have to provide source code for anything that contains
Notice that you don't have to provide source code for anything that contains
Python or is built with it. Also, the Python interpreter and accompanying
Python or is built with it. Also, the Python interpreter and accompanying
...
...
Doc/howto/doanddont.rst
Dosyayı görüntüle @
907a720f
...
@@ -114,7 +114,7 @@ from module import name1, name2
...
@@ -114,7 +114,7 @@ from module import name1, name2
This is a "don't" which is much weaker then the previous "don't"s but is still
This is a "don't" which is much weaker then the previous "don't"s but is still
something you should not do if you don't have good reasons to do that. The
something you should not do if you don't have good reasons to do that. The
reason it is usually bad idea is because you suddenly have an object which lives
reason it is usually bad idea is because you suddenly have an object which lives
in two sep
e
rate namespaces. When the binding in one namespace changes, the
in two sep
a
rate namespaces. When the binding in one namespace changes, the
binding in the other will not, so there will be a discrepancy between them. This
binding in the other will not, so there will be a discrepancy between them. This
happens when, for example, one module is reloaded, or changes the definition of
happens when, for example, one module is reloaded, or changes the definition of
a function at runtime.
a function at runtime.
...
...
Doc/howto/functional.rst
Dosyayı görüntüle @
907a720f
...
@@ -905,7 +905,7 @@ returns them in a tuple::
...
@@ -905,7 +905,7 @@ returns them in a tuple::
itertools.izip(['a', 'b', 'c'], (1, 2, 3)) =>
itertools.izip(['a', 'b', 'c'], (1, 2, 3)) =>
('a', 1), ('b', 2), ('c', 3)
('a', 1), ('b', 2), ('c', 3)
It's simil
i
ar to the built-in :func:`zip` function, but doesn't construct an
It's similar to the built-in :func:`zip` function, but doesn't construct an
in-memory list and exhaust all the input iterators before returning; instead
in-memory list and exhaust all the input iterators before returning; instead
tuples are constructed and returned only if they're requested. (The technical
tuples are constructed and returned only if they're requested. (The technical
term for this behaviour is `lazy evaluation
term for this behaviour is `lazy evaluation
...
...
Doc/howto/sockets.rst
Dosyayı görüntüle @
907a720f
...
@@ -357,7 +357,7 @@ thing to do - give it a nice long timeout (say a minute) unless you have good
...
@@ -357,7 +357,7 @@ thing to do - give it a nice long timeout (say a minute) unless you have good
reason to do otherwise.
reason to do otherwise.
In return, you will get three lists. They have the sockets that are actually
In return, you will get three lists. They have the sockets that are actually
readable, writable and in error. Each of these lists is a subset (poss
bi
ly
readable, writable and in error. Each of these lists is a subset (poss
ib
ly
empty) of the corresponding list you passed in. And if you put a socket in more
empty) of the corresponding list you passed in. And if you put a socket in more
than one input list, it will only be (at most) in one output list.
than one input list, it will only be (at most) in one output list.
...
@@ -371,7 +371,7 @@ just means outbound network buffer space is available.)
...
@@ -371,7 +371,7 @@ just means outbound network buffer space is available.)
If you have a "server" socket, put it in the potential_readers list. If it comes
If you have a "server" socket, put it in the potential_readers list. If it comes
out in the readable list, your ``accept`` will (almost certainly) work. If you
out in the readable list, your ``accept`` will (almost certainly) work. If you
have created a new socket to ``connect`` to someone else, put it in the
have created a new socket to ``connect`` to someone else, put it in the
p
to
ential_writers list. If it shows up in the writable list, you have a decent
p
ot
ential_writers list. If it shows up in the writable list, you have a decent
chance that it has connected.
chance that it has connected.
One very nasty problem with ``select``: if somewhere in those input lists of
One very nasty problem with ``select``: if somewhere in those input lists of
...
...
Doc/library/codecs.rst
Dosyayı görüntüle @
907a720f
...
@@ -1001,7 +1001,7 @@ particular, the following variants typically exist:
...
@@ -1001,7 +1001,7 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
| iso8859_3 | iso-8859-3, latin3, L3 | Esperanto, Maltese |
| iso8859_3 | iso-8859-3, latin3, L3 | Esperanto, Maltese |
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
| iso8859_4 | iso-8859-4, latin4, L4 | Baltic languag
ues
|
| iso8859_4 | iso-8859-4, latin4, L4 | Baltic languag
es
|
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
| iso8859_5 | iso-8859-5, cyrillic | Bulgarian, Byelorussian, |
| iso8859_5 | iso-8859-5, cyrillic | Bulgarian, Byelorussian, |
| | | Macedonian, Russian, Serbian |
| | | Macedonian, Russian, Serbian |
...
...
Doc/library/collections.rst
Dosyayı görüntüle @
907a720f
...
@@ -470,7 +470,7 @@ they add the ability to access fields by name instead of position index.
...
@@ -470,7 +470,7 @@ they add the ability to access fields by name instead of position index.
.. function:: namedtuple(typename, fieldnames, [verbose])
.. function:: namedtuple(typename, fieldnames, [verbose])
Returns a new tuple subclass named *typename*. The new subclass is used to
Returns a new tuple subclass named *typename*. The new subclass is used to
create tuple-like objects that have fields access
a
ble by attribute lookup as
create tuple-like objects that have fields access
i
ble by attribute lookup as
well as being indexable and iterable. Instances of the subclass also have a
well as being indexable and iterable. Instances of the subclass also have a
helpful docstring (with typename and fieldnames) and a helpful :meth:`__repr__`
helpful docstring (with typename and fieldnames) and a helpful :meth:`__repr__`
method which lists the tuple contents in a ``name=value`` format.
method which lists the tuple contents in a ``name=value`` format.
...
@@ -536,7 +536,7 @@ Example::
...
@@ -536,7 +536,7 @@ Example::
>>> x, y = p # unpack like a regular tuple
>>> x, y = p # unpack like a regular tuple
>>> x, y
>>> x, y
(11, 22)
(11, 22)
>>> p.x + p.y # fields also access
a
ble by name
>>> p.x + p.y # fields also access
i
ble by name
33
33
>>> p # readable __repr__ with a name=value style
>>> p # readable __repr__ with a name=value style
Point(x=11, y=22)
Point(x=11, y=22)
...
...
Doc/library/decimal.rst
Dosyayı görüntüle @
907a720f
...
@@ -1609,7 +1609,7 @@ of significant places in the coefficient. For example, expressing
...
@@ -1609,7 +1609,7 @@ of significant places in the coefficient. For example, expressing
original's two-place significance.
original's two-place significance.
If an application does not care about tracking significance, it is easy to
If an application does not care about tracking significance, it is easy to
remove the exponent and trailing zeroes, losing signficance, but keeping the
remove the exponent and trailing zeroes, losing sign
i
ficance, but keeping the
value unchanged::
value unchanged::
>>> def remove_exponent(d):
>>> def remove_exponent(d):
...
...
Doc/library/logging.rst
Dosyayı görüntüle @
907a720f
...
@@ -43,7 +43,7 @@ can include messages from third-party modules.
...
@@ -43,7 +43,7 @@ can include messages from third-party modules.
It
is
,
of
course
,
possible
to
log
messages
with
different
verbosity
levels
or
to
It
is
,
of
course
,
possible
to
log
messages
with
different
verbosity
levels
or
to
different
destinations
.
Support
for
writing
log
messages
to
files
,
HTTP
different
destinations
.
Support
for
writing
log
messages
to
files
,
HTTP
GET
/
POST
locations
,
email
via
SMTP
,
generic
sockets
,
or
OS
-
specific
logging
GET
/
POST
locations
,
email
via
SMTP
,
generic
sockets
,
or
OS
-
specific
logging
mechnisms
are
all
supported
by
the
standard
module
.
You
can
also
create
your
mech
a
nisms
are
all
supported
by
the
standard
module
.
You
can
also
create
your
own
log
destination
class
if
you
have
special
requirements
not
met
by
any
of
the
own
log
destination
class
if
you
have
special
requirements
not
met
by
any
of
the
built
-
in
classes
.
built
-
in
classes
.
...
@@ -267,7 +267,7 @@ destination. Logger objects can add zero or more handler objects to themselves
...
@@ -267,7 +267,7 @@ destination. Logger objects can add zero or more handler objects to themselves
with
an
:
func
:`
addHandler
`
method
.
As
an
example
scenario
,
an
application
may
with
an
:
func
:`
addHandler
`
method
.
As
an
example
scenario
,
an
application
may
want
to
send
all
log
messages
to
a
log
file
,
all
log
messages
of
error
or
higher
want
to
send
all
log
messages
to
a
log
file
,
all
log
messages
of
error
or
higher
to
stdout
,
and
all
messages
of
critical
to
an
email
address
.
This
scenario
to
stdout
,
and
all
messages
of
critical
to
an
email
address
.
This
scenario
requires
three
individual
handlers
where
each
hander
is
responsible
for
sending
requires
three
individual
handlers
where
each
hand
l
er
is
responsible
for
sending
messages
of
a
specific
severity
to
a
specific
location
.
messages
of
a
specific
severity
to
a
specific
location
.
The
standard
library
includes
quite
a
few
handler
types
;
this
tutorial
uses
only
The
standard
library
includes
quite
a
few
handler
types
;
this
tutorial
uses
only
...
...
Doc/library/mailbox.rst
Dosyayı görüntüle @
907a720f
...
@@ -433,7 +433,7 @@ the original. In the interest of compatibility, :class:`mbox` implements the
...
@@ -433,7 +433,7 @@ the original. In the interest of compatibility, :class:`mbox` implements the
original format, which is sometimes referred to as :dfn:`mboxo`. This means that
original format, which is sometimes referred to as :dfn:`mboxo`. This means that
the :mailheader:`Content-Length` header, if present, is ignored and that any
the :mailheader:`Content-Length` header, if present, is ignored and that any
occurrences of "From " at the beginning of a line in a message body are
occurrences of "From " at the beginning of a line in a message body are
transformed to ">From " when storing the message, although occurences of ">From
transformed to ">From " when storing the message, although occur
r
ences of ">From
" are not transformed to "From " when reading the message.
" are not transformed to "From " when reading the message.
Some :class:`Mailbox` methods implemented by :class:`mbox` deserve special
Some :class:`Mailbox` methods implemented by :class:`mbox` deserve special
...
@@ -581,7 +581,7 @@ remarks:
...
@@ -581,7 +581,7 @@ remarks:
.. method:: MH.close()
.. method:: MH.close()
:class:`MH` instances do not keep any open files, so this method is equiv
ela
nt
:class:`MH` instances do not keep any open files, so this method is equiv
ale
nt
to :meth:`unlock`.
to :meth:`unlock`.
...
...
Doc/library/platform.rst
Dosyayı görüntüle @
907a720f
...
@@ -245,7 +245,7 @@ Unix Platforms
...
@@ -245,7 +245,7 @@ Unix Platforms
version)`` which default to the given parameters in case the lookup fails.
version)`` which default to the given parameters in case the lookup fails.
Note that this function has intimate knowledge of how different libc versions
Note that this function has intimate knowledge of how different libc versions
add symbols to the executable is probably only us
e
able for executables compiled
add symbols to the executable is probably only usable for executables compiled
using :program:`gcc`.
using :program:`gcc`.
The file is read and scanned in chunks of *chunksize* bytes.
The file is read and scanned in chunks of *chunksize* bytes.
...
...
Doc/library/profile.rst
Dosyayı görüntüle @
907a720f
...
@@ -531,7 +531,7 @@ The :class:`Stats` Class
...
@@ -531,7 +531,7 @@ The :class:`Stats` Class
non-parenthesized number repeats the cumulative time spent in the function
non-parenthesized number repeats the cumulative time spent in the function
at the right.
at the right.
* With :mod:`cProfile`, each caller is prece
e
ded by three numbers: the number of
* With :mod:`cProfile`, each caller is preceded by three numbers: the number of
times this specific call was made, and the total and cumulative times spent in
times this specific call was made, and the total and cumulative times spent in
the current function while it was invoked by this specific caller.
the current function while it was invoked by this specific caller.
...
...
Doc/library/random.rst
Dosyayı görüntüle @
907a720f
...
@@ -98,7 +98,7 @@ Bookkeeping functions:
...
@@ -98,7 +98,7 @@ Bookkeeping functions:
Change the internal state to one different from and likely far away from the
Change the internal state to one different from and likely far away from the
current state. *n* is a non-negative integer which is used to scramble the
current state. *n* is a non-negative integer which is used to scramble the
current state vector. This is most useful in multi-threaded programs, in
current state vector. This is most useful in multi-threaded programs, in
conjuction with multiple instances of the :class:`Random` class:
conju
n
ction with multiple instances of the :class:`Random` class:
:meth:`setstate` or :meth:`seed` can be used to force all instances into the
:meth:`setstate` or :meth:`seed` can be used to force all instances into the
same internal state, and then :meth:`jumpahead` can be used to force the
same internal state, and then :meth:`jumpahead` can be used to force the
instances' states far apart.
instances' states far apart.
...
...
Doc/library/re.rst
Dosyayı görüntüle @
907a720f
...
@@ -1102,7 +1102,7 @@ into a list with each nonempty line having its own entry::
...
@@ -1102,7 +1102,7 @@ into a list with each nonempty line having its own entry::
'Heather Albrecht 548.326.4584 919 Park Place']
'Heather Albrecht 548.326.4584 919 Park Place']
Finally, split each entry into a list with first name, last name, telephone
Finally, split each entry into a list with first name, last name, telephone
number, and address. We use the ``maxsplit`` param
a
ter of :func:`split`
number, and address. We use the ``maxsplit`` param
e
ter of :func:`split`
because the address has spaces, our splitting pattern, in it::
because the address has spaces, our splitting pattern, in it::
>>> [re.split(":? ", entry, 3) for entry in entries]
>>> [re.split(":? ", entry, 3) for entry in entries]
...
@@ -1112,7 +1112,7 @@ because the address has spaces, our splitting pattern, in it::
...
@@ -1112,7 +1112,7 @@ because the address has spaces, our splitting pattern, in it::
['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]
['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]
The ``:?`` pattern matches the colon after the last name, so that it does not
The ``:?`` pattern matches the colon after the last name, so that it does not
occur in the result list. With a ``maxsplit`` of ``4``, we could sep
e
rate the
occur in the result list. With a ``maxsplit`` of ``4``, we could sep
a
rate the
house number from the street name::
house number from the street name::
>>> [re.split(":? ", entry, 4) for entry in entries]
>>> [re.split(":? ", entry, 4) for entry in entries]
...
@@ -1144,7 +1144,7 @@ in each word of a sentence except for the first and last characters::
...
@@ -1144,7 +1144,7 @@ in each word of a sentence except for the first and last characters::
Finding all Adverbs
Finding all Adverbs
^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^
:func:`findall` matches *all* occurences of a pattern, not just the first
:func:`findall` matches *all* occur
r
ences of a pattern, not just the first
one as :func:`search` does. For example, if one was a writer and wanted to
one as :func:`search` does. For example, if one was a writer and wanted to
find all of the adverbs in some text, he or she might use :func:`findall` in
find all of the adverbs in some text, he or she might use :func:`findall` in
the following manner::
the following manner::
...
...
Doc/library/socket.rst
Dosyayı görüntüle @
907a720f
...
@@ -929,5 +929,5 @@ the interface::
...
@@ -929,5 +929,5 @@ the interface::
# receive a package
# receive a package
print s.recvfrom(65565)
print s.recvfrom(65565)
# disabled promiscous mode
# disabled promisc
u
ous mode
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_OFF)
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_OFF)
Doc/library/tokenize.rst
Dosyayı görüntüle @
907a720f
...
@@ -18,7 +18,7 @@ The primary entry point is a :term:`generator`:
...
@@ -18,7 +18,7 @@ The primary entry point is a :term:`generator`:
.. function:: generate_tokens(readline)
.. function:: generate_tokens(readline)
The :func:`generate_tokens` generator requires one argment, *readline*, which
The :func:`generate_tokens` generator requires one arg
u
ment, *readline*, which
must be a callable object which provides the same interface as the
must be a callable object which provides the same interface as the
:meth:`readline` method of built-in file objects (see section
:meth:`readline` method of built-in file objects (see section
:ref:`bltin-file-objects`). Each call to the function should return one line of
:ref:`bltin-file-objects`). Each call to the function should return one line of
...
...
Doc/library/xml.etree.elementtree.rst
Dosyayı görüntüle @
907a720f
...
@@ -421,7 +421,7 @@ TreeBuilder Objects
...
@@ -421,7 +421,7 @@ TreeBuilder Objects
.. method:: TreeBuilder.close()
.. method:: TreeBuilder.close()
Flushes the parser buffers, and returns the toplevel documen element. Returns an
Flushes the parser buffers, and returns the toplevel documen
t
element. Returns an
Element instance.
Element instance.
...
...
Doc/reference/compound_stmts.rst
Dosyayı görüntüle @
907a720f
...
@@ -531,7 +531,7 @@ implementation details.
...
@@ -531,7 +531,7 @@ implementation details.
.. rubric:: Footnotes
.. rubric:: Footnotes
.. [#] The exception is prop
o
gated to the invocation stack only if there is no
.. [#] The exception is prop
a
gated to the invocation stack only if there is no
:keyword:`finally` clause that negates the exception.
:keyword:`finally` clause that negates the exception.
.. [#] Currently, control "flows off the end" except in the case of an exception or the
.. [#] Currently, control "flows off the end" except in the case of an exception or the
...
...
Doc/reference/expressions.rst
Dosyayı görüntüle @
907a720f
...
@@ -395,7 +395,7 @@ generator function:
...
@@ -395,7 +395,7 @@ generator function:
generator, or raises :exc:`StopIteration` if the generator exits without
generator, or raises :exc:`StopIteration` if the generator exits without
yielding another value. When :meth:`send` is called to start the generator, it
yielding another value. When :meth:`send` is called to start the generator, it
must be called with :const:`None` as the argument, because there is no
must be called with :const:`None` as the argument, because there is no
:keyword:`yield` expression that could recei
e
ve the value.
:keyword:`yield` expression that could receive the value.
.. method:: generator.throw(type[, value[, traceback]])
.. method:: generator.throw(type[, value[, traceback]])
...
@@ -677,7 +677,7 @@ there were no excess keyword arguments.
...
@@ -677,7 +677,7 @@ there were no excess keyword arguments.
If the syntax ``*expression`` appears in the function call, ``expression`` must
If the syntax ``*expression`` appears in the function call, ``expression`` must
evaluate to a sequence. Elements from this sequence are treated as if they were
evaluate to a sequence. Elements from this sequence are treated as if they were
additional positional arguments; if there are postional arguments *x1*,...,*xN*
additional positional arguments; if there are pos
i
tional arguments *x1*,...,*xN*
, and ``expression`` evaluates to a sequence *y1*,...,*yM*, this is equivalent
, and ``expression`` evaluates to a sequence *y1*,...,*yM*, this is equivalent
to a call with M+N positional arguments *x1*,...,*xN*,*y1*,...,*yM*.
to a call with M+N positional arguments *x1*,...,*xN*,*y1*,...,*yM*.
...
...
Doc/reference/index.rst
Dosyayı görüntüle @
907a720f
...
@@ -17,7 +17,7 @@ write a Python extension module, and the :ref:`c-api-index` describes the
...
@@ -17,7 +17,7 @@ write a Python extension module, and the :ref:`c-api-index` describes the
interfaces available to C/C++ programmers in detail.
interfaces available to C/C++ programmers in detail.
.. toctree::
.. toctree::
:maxdepth:
3
:maxdepth:
2
introduction.rst
introduction.rst
lexical_analysis.rst
lexical_analysis.rst
...
...
Doc/whatsnew/2.6.rst
Dosyayı görüntüle @
907a720f
...
@@ -560,7 +560,7 @@ doing ``isinstance(obj, Number)``.
...
@@ -560,7 +560,7 @@ doing ``isinstance(obj, Number)``.
Numbers are further divided into :class:`Exact` and :class:`Inexact`.
Numbers are further divided into :class:`Exact` and :class:`Inexact`.
Exact numbers can represent values precisely and operations never
Exact numbers can represent values precisely and operations never
round off the results or introduce tiny errors that may break the
round off the results or introduce tiny errors that may break the
commu
n
tativity and associativity properties; inexact numbers may
commutativity and associativity properties; inexact numbers may
perform such rounding or introduce small errors. Integers, long
perform such rounding or introduce small errors. Integers, long
integers, and rational numbers are exact, while floating-point
integers, and rational numbers are exact, while floating-point
and complex numbers are inexact.
and complex numbers are inexact.
...
@@ -1395,7 +1395,7 @@ Changes to Python's build process and to the C API include:
...
@@ -1395,7 +1395,7 @@ Changes to Python's build process and to the C API include:
.. Issue 1534
.. Issue 1534
* Python's C API now includes two functions for case-insensitive string
* Python's C API now includes two functions for case-insensitive string
comparis
i
ons, ``PyOS_stricmp(char*, char*)``
comparisons, ``PyOS_stricmp(char*, char*)``
and ``PyOS_strnicmp(char*, char*, Py_ssize_t)``.
and ``PyOS_strnicmp(char*, char*, Py_ssize_t)``.
(Contributed by Christian Heimes.)
(Contributed by Christian Heimes.)
...
...
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