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
d6499103
Commit
d6499103
authored
Nov 07, 2018
by
Andrés Delfino
Committed by
Serhiy Storchaka
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct grammar mistakes in string.rst. (GH-9752)
parent
ca03f3b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/string.rst
Doc/library/string.rst
+2
-2
No files found.
Doc/library/string.rst
View file @
d6499103
...
@@ -551,7 +551,7 @@ addition of the ``{}`` and with ``:`` used instead of ``%``.
...
@@ -551,7 +551,7 @@ addition of the ``{}`` and with ``:`` used instead of ``%``.
For example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``.
For example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``.
The new format syntax also supports new and different options, shown in the
The new format syntax also supports new and different options, shown in the
follow examples.
follow
ing
examples.
Accessing arguments by position::
Accessing arguments by position::
...
@@ -739,7 +739,7 @@ these rules. The methods of :class:`Template` are:
...
@@ -739,7 +739,7 @@ these rules. The methods of :class:`Template` are:
simply return ``$`` instead of raising :exc:`ValueError`.
simply return ``$`` instead of raising :exc:`ValueError`.
While other exceptions may still occur, this method is called "safe"
While other exceptions may still occur, this method is called "safe"
because
substitutions
always tries to return a usable string instead of
because
it
always tries to return a usable string instead of
raising an exception. In another sense, :meth:`safe_substitute` may be
raising an exception. In another sense, :meth:`safe_substitute` may be
anything other than safe, since it will silently ignore malformed
anything other than safe, since it will silently ignore malformed
templates containing dangling delimiters, unmatched braces, or
templates containing dangling delimiters, unmatched braces, or
...
...
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