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
ad37e9e7
Commit
ad37e9e7
authored
Feb 02, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that capwords() removes leading/trailing whitespace.
Remove references to regsub, which is obsolescent.
parent
f7c1e5a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
Doc/lib/libstring.tex
Doc/lib/libstring.tex
+1
-5
Doc/libstring.tex
Doc/libstring.tex
+1
-5
No files found.
Doc/lib/libstring.tex
View file @
ad37e9e7
...
...
@@ -96,9 +96,7 @@ Capitalize the first character of the argument.
Split the argument into words using
\code
{
split
}
, capitalize each word
using
\code
{
capitalize
}
, and join the capitalized words using
\code
{
join
}
. Note that this replaces runs of whitespace characters by
a single space. (See also
\code
{
regsub.capwords()
}
for a version
that doesn't change the delimiters, and lets you specify a word
separator.)
a single space, and removes leading and trailing whitespace.
\end{funcdesc}
\begin{funcdesc}
{
expandtabs
}{
s
\,
tabsize
}
...
...
@@ -161,8 +159,6 @@ string. The optional third argument \var{maxsplit} defaults to 0. If
it is nonzero, at most
\var
{
maxsplit
}
number of splits occur, and the
remainder of the string is returned as the final element of the list
(thus, the list will have at most
\code
{
\var
{
maxsplit
}
+1
}
elements).
(See also
\code
{
regsub.split()
}
for a version that allows specifying a
regular expression as the separator.)
\end{funcdesc}
\begin{funcdesc}
{
splitfields
}{
s
\optional
{
\,
sep
\optional
{
\,
maxsplit
}}}
...
...
Doc/libstring.tex
View file @
ad37e9e7
...
...
@@ -96,9 +96,7 @@ Capitalize the first character of the argument.
Split the argument into words using
\code
{
split
}
, capitalize each word
using
\code
{
capitalize
}
, and join the capitalized words using
\code
{
join
}
. Note that this replaces runs of whitespace characters by
a single space. (See also
\code
{
regsub.capwords()
}
for a version
that doesn't change the delimiters, and lets you specify a word
separator.)
a single space, and removes leading and trailing whitespace.
\end{funcdesc}
\begin{funcdesc}
{
expandtabs
}{
s
\,
tabsize
}
...
...
@@ -161,8 +159,6 @@ string. The optional third argument \var{maxsplit} defaults to 0. If
it is nonzero, at most
\var
{
maxsplit
}
number of splits occur, and the
remainder of the string is returned as the final element of the list
(thus, the list will have at most
\code
{
\var
{
maxsplit
}
+1
}
elements).
(See also
\code
{
regsub.split()
}
for a version that allows specifying a
regular expression as the separator.)
\end{funcdesc}
\begin{funcdesc}
{
splitfields
}{
s
\optional
{
\,
sep
\optional
{
\,
maxsplit
}}}
...
...
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