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
e7a09901
Kaydet (Commit)
e7a09901
authored
Eki 21, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add :term:s for iterator.
üst
cf3fb259
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
48 additions
and
45 deletions
+48
-45
glossary.rst
Doc/glossary.rst
+2
-0
functional.rst
Doc/howto/functional.rst
+1
-1
regex.rst
Doc/howto/regex.rst
+2
-2
autogil.rst
Doc/library/autogil.rst
+2
-2
cookielib.rst
Doc/library/cookielib.rst
+1
-1
csv.rst
Doc/library/csv.rst
+1
-1
ctypes.rst
Doc/library/ctypes.rst
+2
-2
dis.rst
Doc/library/dis.rst
+4
-4
exceptions.rst
Doc/library/exceptions.rst
+4
-3
functions.rst
Doc/library/functions.rst
+6
-6
glob.rst
Doc/library/glob.rst
+2
-2
heapq.rst
Doc/library/heapq.rst
+2
-2
itertools.rst
Doc/library/itertools.rst
+1
-1
pickletools.rst
Doc/library/pickletools.rst
+4
-4
re.rst
Doc/library/re.rst
+1
-1
sqlite3.rst
Doc/library/sqlite3.rst
+7
-7
urllib.rst
Doc/library/urllib.rst
+1
-1
weakref.rst
Doc/library/weakref.rst
+2
-2
wsgiref.rst
Doc/library/wsgiref.rst
+1
-1
xml.etree.elementtree.rst
Doc/library/xml.etree.elementtree.rst
+2
-2
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -225,6 +225,8 @@ Glossary
with an iterator will just return the same exhausted iterator object used
in the previous iteration pass, making it appear like an empty container.
More information can be found in :ref:`typeiter`.
LBYL
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts with
...
...
Doc/howto/functional.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -13,7 +13,7 @@ disclaimer.)
In this document, we'll take a tour of Python's features suitable for
implementing programs in a functional style. After an introduction to the
concepts of functional programming, we'll look at language features such as
iterator
s and :term:`generator`\s and relevant library modules such as
:term:`iterator`\
s and :term:`generator`\s and relevant library modules such as
:mod:`itertools` and :mod:`functools`.
...
...
Doc/howto/regex.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -354,7 +354,7 @@ listing.
| | returns them as a list. |
+------------------+-----------------------------------------------+
| ``finditer()`` | Find all substrings where the RE matches, and |
| | returns them as an
iterator.
|
| | returns them as an
:term:`iterator`.
|
+------------------+-----------------------------------------------+
:meth:`match` and :meth:`search` return ``None`` if no match can be found. If
...
...
@@ -460,7 +460,7 @@ Two :class:`RegexObject` methods return all of the matches for a pattern.
:meth:`findall` has to create the entire list before it can be returned as the
result. The :meth:`finditer` method returns a sequence of :class:`MatchObject`
instances as an
iterator
. [#]_ ::
instances as an
:term:`iterator`
. [#]_ ::
>>> iterator = p.finditer('12 drummers drumming, 11 ... 10 ...')
>>> iterator
...
...
Doc/library/autogil.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -9,8 +9,8 @@
The :mod:`autoGIL` module provides a function :func:`installAutoGIL` that
automatically locks and unlocks Python's
Global Interpreter Lock when running a
n
event loop.
automatically locks and unlocks Python's
:term:`Global Interpreter Lock` whe
n
running an
event loop.
.. exception:: AutoGILError
...
...
Doc/library/cookielib.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -144,7 +144,7 @@ The following classes are provided:
CookieJar and FileCookieJar Objects
-----------------------------------
:class:`CookieJar` objects support the
iterator
protocol for iterating over
:class:`CookieJar` objects support the
:term:`iterator`
protocol for iterating over
contained :class:`Cookie` objects.
:class:`CookieJar` has the following methods:
...
...
Doc/library/csv.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -62,7 +62,7 @@ The :mod:`csv` module defines the following functions:
.. function:: reader(csvfile[, dialect='excel'][, fmtparam])
Return a reader object which will iterate over lines in the given *csvfile*.
*csvfile* can be any object which supports the
iterator
protocol and returns a
*csvfile* can be any object which supports the
:term:`iterator`
protocol and returns a
string each time its :meth:`next` method is called --- file objects and list
objects are both suitable. If *csvfile* is a file object, it must be opened
with the 'b' flag on platforms where that makes a difference. An optional
...
...
Doc/library/ctypes.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -1368,8 +1368,8 @@ way is to instantiate one of the following classes:
:class:`WinDLL` and :class:`OleDLL` use the standard calling convention on this
platform.
The Python
GIL is released before calling any function exported by these
libraries, and reacquired afterwards.
The Python
:term:`global interpreter lock` is released before calling any
function exported by these
libraries, and reacquired afterwards.
.. class:: PyDLL(name, mode=DEFAULT_MODE, handle=None)
...
...
Doc/library/dis.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -674,10 +674,10 @@ the more significant byte last.
.. opcode:: FOR_ITER (delta)
``TOS`` is an
iterator. Call its :meth:`next` method. If this yields a new
value, push it on the stack (leaving the iterator below it). If the iterator
indicates it is exhausted ``TOS`` is popped, and the bytecode counter is
incremented by *delta*.
``TOS`` is an
:term:`iterator`. Call its :meth:`next` method. If this
yields a new value, push it on the stack (leaving the iterator below it). If
the iterator indicates it is exhausted ``TOS`` is popped, and the bytecode
counter is
incremented by *delta*.
.. % \begin{opcodedesc}{FOR_LOOP}{delta}
.. % This opcode is obsolete.
...
...
Doc/library/exceptions.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -285,9 +285,10 @@ The following exceptions are the exceptions that are actually raised.
.. exception:: StopIteration
Raised by an iterator's :meth:`next` method to signal that there are no further
values. This is derived from :exc:`Exception` rather than :exc:`StandardError`,
since this is not considered an error in its normal application.
Raised by an :term:`iterator`\'s :meth:`next` method to signal that there are
no further values. This is derived from :exc:`Exception` rather than
:exc:`StandardError`, since this is not considered an error in its normal
application.
.. versionadded:: 2.2
...
...
Doc/library/functions.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -322,7 +322,7 @@ available. They are listed here in alphabetical order.
..
function
::
enumerate
(
iterable
)
Return
an
enumerate
object
.
*
iterable
*
must
be
a
sequence
,
an
iterator
,
or
some
Return
an
enumerate
object
.
*
iterable
*
must
be
a
sequence
,
an
:
term
:`
iterator
`
,
or
some
other
object
which
supports
iteration
.
The
:
meth
:`
next
`
method
of
the
iterator
returned
by
:
func
:`
enumerate
`
returns
a
tuple
containing
a
count
(
from
zero
)
and
the
corresponding
value
obtained
from
iterating
over
*
iterable
*.
...
...
@@ -420,7 +420,7 @@ available. They are listed here in alphabetical order.
Construct a list from those elements of *iterable* for which *function* returns
true. *iterable* may be either a sequence, a container which supports
iteration, or an iterator
,
If *iterable* is a string or a tuple, the result
iteration, or an iterator
.
If *iterable* is a string or a tuple, the result
also has that type; otherwise it is always a list. If *function* is ``None``,
the identity function is assumed, that is, all elements of *iterable* that are
false are removed.
...
...
@@ -590,7 +590,7 @@ available. They are listed here in alphabetical order.
..
function
::
iter
(
o
[,
sentinel
])
Return
an
iterator
object
.
The
first
argument
is
interpreted
very
differently
Return
an
:
term
:`
iterator
`
object
.
The
first
argument
is
interpreted
very
differently
depending
on
the
presence
of
the
second
argument
.
Without
a
second
argument
,
*
o
*
must
be
a
collection
object
which
supports
the
iteration
protocol
(
the
:
meth
:`
__iter__
`
method
),
or
it
must
support
the
sequence
protocol
(
the
...
...
@@ -973,9 +973,9 @@ available. They are listed here in alphabetical order.
.. function:: reversed(seq)
Return a reverse
iterator. *seq* must be an object which supports the sequence
protocol (the :meth:`__len__` method and the :meth:`__getitem__` method with
integer arguments starting at ``0``).
Return a reverse
:term:`iterator`. *seq* must be an object which supports
the sequence protocol (the :meth:`__len__` method and the :meth:`__getitem__`
method with
integer arguments starting at ``0``).
.. versionadded:: 2.4
...
...
Doc/library/glob.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -28,8 +28,8 @@ subshell. (For tilde and shell variable expansion, use
.. function:: iglob(pathname)
Return an
iterator which yields the same values as :func:`glob` without actually
storing them all simultaneously.
Return an
:term:`iterator` which yields the same values as :func:`glob`
without actually
storing them all simultaneously.
.. versionadded:: 2.5
...
...
Doc/library/heapq.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -92,8 +92,8 @@ The module also offers three general purpose functions based on heaps.
.. function:: merge(*iterables)
Merge multiple sorted inputs into a single sorted output (for example, merge
timestamped entries from multiple log files). Returns an
iterator over over the
sorted values.
timestamped entries from multiple log files). Returns an
:term:`iterator`
over over the
sorted values.
Similar to ``sorted(itertools.chain(*iterables))`` but returns an iterable, does
not pull the data into memory all at once, and assumes that each of the input
...
...
Doc/library/itertools.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -10,7 +10,7 @@
.. versionadded:: 2.3
This module implements a number of
iterator
building blocks inspired by
This module implements a number of
:term:`iterator`
building blocks inspired by
constructs from the Haskell and SML programming languages. Each has been recast
in a form suitable for Python.
...
...
Doc/library/pickletools.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -29,9 +29,9 @@ probably won't find the :mod:`pickletools` module relevant.
.. function:: genops(pickle)
Provides an
iterator over all of the opcodes in a pickle, returning a sequence
of ``(opcode, arg, pos)`` triples.
*opcode* is an instance of an
:class:`OpcodeInfo` class; *arg*
is the decoded value, as a Python object, of
the opcode's argument;
*pos* is the position at which this opcode is located.
Provides an
:term:`iterator` over all of the opcodes in a pickle, returning a
sequence of ``(opcode, arg, pos)`` triples.
*opcode* is an instance of an
:class:`OpcodeInfo` class; *arg* is the decoded value, as a Python object, of
the opcode's argument; *pos* is the position at which this opcode is located.
*pickle* can be a string or a file-like object.
Doc/library/re.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -568,7 +568,7 @@ form.
.. function:: finditer(pattern, string[, flags])
Return an
iterator
yielding :class:`MatchObject` instances over all
Return an
:term:`iterator`
yielding :class:`MatchObject` instances over all
non-overlapping matches for the RE *pattern* in *string*. Empty matches are
included in the result unless they touch the beginning of another match.
...
...
Doc/library/sqlite3.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -71,10 +71,10 @@ may use a different placeholder, such as ``%s`` or ``:1``.) For example::
):
c.execute('insert into stocks values (?,?,?,?,?)', t)
To retrieve data after executing a SELECT statement, you can either
treat the
cursor as an
iterator, call the cursor's :meth:`fetchone` method to retrieve a
single matching row, or call :meth:`fetchall` to get a list of the matching
rows.
To retrieve data after executing a SELECT statement, you can either treat the
cursor as an
:term:`iterator`, call the cursor's :meth:`fetchone` method to
retrieve a single matching row, or call :meth:`fetchall` to get a list of the
matching
rows.
This example uses the iterator form::
...
...
@@ -410,9 +410,9 @@ A :class:`Cursor` instance has the following attributes and methods:
.. method:: Cursor.executemany(sql, seq_of_parameters)
Executes a SQL command against all parameter sequences or mappings found in
the
sequence *sql*. The :mod:`sqlite3` module also allows using an iterator yielding
parameters instead of a sequence.
Executes a SQL command against all parameter sequences or mappings found in
the sequence *sql*. The :mod:`sqlite3` module also allows using an
:term:`iterator` yielding
parameters instead of a sequence.
.. literalinclude:: ../includes/sqlite3/executemany_1.py
...
...
Doc/library/urllib.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -29,7 +29,7 @@ It defines the following public functions:
:exc:`IOError` exception is raised. If all went well, a file-like object is
returned. This supports the following methods: :meth:`read`, :meth:`readline`,
:meth:`readlines`, :meth:`fileno`, :meth:`close`, :meth:`info` and
:meth:`geturl`. It also has proper support for the
iterator
protocol. One
:meth:`geturl`. It also has proper support for the
:term:`iterator`
protocol. One
caveat: the :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.
...
...
Doc/library/weakref.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -150,7 +150,7 @@ than needed.
.. method:: WeakKeyDictionary.iterkeyrefs()
Return an
iterator
that yields the weak references to the keys.
Return an
:term:`iterator`
that yields the weak references to the keys.
.. versionadded:: 2.5
...
...
@@ -182,7 +182,7 @@ methods of :class:`WeakKeyDictionary` objects.
.. method:: WeakValueDictionary.itervaluerefs()
Return an
iterator
that yields the weak references to the values.
Return an
:term:`iterator`
that yields the weak references to the values.
.. versionadded:: 2.5
...
...
Doc/library/wsgiref.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -126,7 +126,7 @@ also provides these miscellaneous utilities:
.. class:: FileWrapper(filelike [, blksize=8192])
A wrapper to convert a file-like object to an
iterator
. The resulting objects
A wrapper to convert a file-like object to an
:term:`iterator`
. The resulting objects
support both :meth:`__getitem__` and :meth:`__iter__` iteration styles, for
compatibility with Python 2.1 and Jython. As the object is iterated over, the
optional *blksize* parameter will be repeatedly passed to the *filelike*
...
...
Doc/library/xml.etree.elementtree.rst
Dosyayı görüntüle @
e7a09901
...
...
@@ -89,7 +89,7 @@ Functions
Parses an XML section into an element tree incrementally, and reports what's
going on to the user. *source* is a filename or file object containing XML data.
*events* is a list of events to report back. If omitted, only "end" events are
reported. Returns an
iterator
providing ``(event, elem)`` pairs.
reported. Returns an
:term:`iterator`
providing ``(event, elem)`` pairs.
.. function:: parse(source[, parser])
...
...
@@ -318,7 +318,7 @@ ElementTree Objects
.. method:: ElementTree.findall(path)
Finds all toplevel elements with the given tag. Same as getroot().findall(path).
*path* is the element to look for. Returns a list or
iterator
containing all
*path* is the element to look for. Returns a list or
:term:`iterator`
containing all
matching elements, in document order.
...
...
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