Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6b298c12
Commit
6b298c12
authored
Oct 12, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix and add more links.
parent
53c7a4a8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
Doc/howto/unicode.rst
Doc/howto/unicode.rst
+1
-1
Doc/library/functions.rst
Doc/library/functions.rst
+11
-3
Doc/library/string.rst
Doc/library/string.rst
+1
-1
Doc/tutorial/introduction.rst
Doc/tutorial/introduction.rst
+1
-1
No files found.
Doc/howto/unicode.rst
View file @
6b298c12
...
...
@@ -414,7 +414,7 @@ References
----------
The ``str`` type is described in the Python library reference at
:ref:`t
ypes
seq`.
:ref:`t
ext
seq`.
The documentation for the :mod:`unicodedata` module.
...
...
Doc/library/functions.rst
View file @
6b298c12
...
...
@@ -122,6 +122,8 @@ are always available. They are listed here in alphabetical order.
Without an argument, an array of size 0 is created.
See also :ref:`binaryseq` and :ref:`typebytearray`.
.. _func-bytes:
.. function:: bytes([source[, encoding[, errors]]])
...
...
@@ -135,6 +137,8 @@ are always available. They are listed here in alphabetical order.
Bytes objects can also be created with literals, see :ref:`strings`.
See also :ref:`binaryseq`, :ref:`typebytes`, and :ref:`bytes-methods`.
.. function:: callable(object)
...
...
@@ -687,6 +691,8 @@ are always available. They are listed here in alphabetical order.
method; if the value returned is equal to *sentinel*, :exc:`StopIteration`
will be raised, otherwise the value will be returned.
See also :ref:`typeiter`.
One useful application of the second form of :func:`iter` is to read lines of
a file until a certain line is reached. The following example reads a file
until the :meth:`readline` method returns an empty string::
...
...
@@ -707,7 +713,7 @@ are always available. They are listed here in alphabetical order.
:noindex:
Rather than being a function, :class:`list` is actually a mutable
sequence type, as documented in :ref:`typesseq`.
sequence type, as documented in :ref:`typesseq
-list` and :ref:`typesseq
`.
.. function:: locals()
...
...
@@ -1081,7 +1087,7 @@ are always available. They are listed here in alphabetical order.
:noindex:
Rather than being a function, :class:`range` is actually an immutable
sequence type, as documented in :ref:`typesseq`.
sequence type, as documented in :ref:`typesseq
-range` and :ref:`typesseq
`.
.. function:: repr(object)
...
...
@@ -1309,7 +1315,7 @@ are always available. They are listed here in alphabetical order.
:noindex:
Rather than being a function, :class:`tuple` is actually an immutable
sequence type, as documented in :ref:`typesseq`.
sequence type, as documented in :ref:`typesseq
-tuple` and :ref:`typesseq
`.
.. function:: type(object)
...
...
@@ -1342,6 +1348,8 @@ are always available. They are listed here in alphabetical order.
...
>>> X = type('X', (object,), dict(a=1))
See also :ref:`bltin-type-objects`.
.. function:: vars([object])
...
...
Doc/library/string.rst
View file @
6b298c12
...
...
@@ -10,7 +10,7 @@
.. seealso::
:ref:`t
ypes
seq`
:ref:`t
ext
seq`
:ref:`string-methods`
...
...
Doc/tutorial/introduction.rst
View file @
6b298c12
...
...
@@ -390,7 +390,7 @@ The built-in function :func:`len` returns the length of a string::
.. seealso::
:ref:`t
ypes
seq`
:ref:`t
ext
seq`
Strings are examples of *sequence types*, and support the common
operations supported by such types.
...
...
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