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
0bf4d892
Commit
0bf4d892
authored
Mar 02, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add warning about strop
parent
dc46c7f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
Doc/lib/libstring.tex
Doc/lib/libstring.tex
+15
-7
Doc/libstring.tex
Doc/libstring.tex
+15
-7
No files found.
Doc/lib/libstring.tex
View file @
0bf4d892
...
...
@@ -3,8 +3,11 @@
\stmodindex
{
string
}
This module defines some constants useful for checking character
classes, some exceptions, and some useful string functions.
The constants are:
classes and some useful string functions. See the modules
\code
{
regex
}
and
\code
{
regsub
}
for string functions based on regular
expressions.
The constants defined in this module are are:
\renewcommand
{
\indexsubitem
}{
(data in module string)
}
\begin{datadesc}
{
digits
}
...
...
@@ -48,11 +51,7 @@ The constants are:
undefined.
\end{datadesc}
The exceptions are:
\renewcommand
{
\indexsubitem
}{
(exception in module string)
}
The functions are:
The functions defined in this module are:
\renewcommand
{
\indexsubitem
}{
(in module string)
}
...
...
@@ -169,3 +168,12 @@ The string is never truncated.
Pad a numeric string on the left with zero digits until the given
width is reached. Strings starting with a sign are handled correctly.
\end{funcdesc}
This module is implemented in Python. Much of its functionality has
been reimplemented in the built-in module
\code
{
strop
}
. However, you
should
\emph
{
never
}
import the latter module directly. When
\code
{
string
}
discovers that
\code
{
strop
}
exists, it transparently
replaces parts of itself with the implementation from
\code
{
strop
}
.
After initialization, there is
\emph
{
no
}
overhead in using
\code
{
string
}
instead of
\code
{
strop
}
.
\bimodindex
{
strop
}
Doc/libstring.tex
View file @
0bf4d892
...
...
@@ -3,8 +3,11 @@
\stmodindex
{
string
}
This module defines some constants useful for checking character
classes, some exceptions, and some useful string functions.
The constants are:
classes and some useful string functions. See the modules
\code
{
regex
}
and
\code
{
regsub
}
for string functions based on regular
expressions.
The constants defined in this module are are:
\renewcommand
{
\indexsubitem
}{
(data in module string)
}
\begin{datadesc}
{
digits
}
...
...
@@ -48,11 +51,7 @@ The constants are:
undefined.
\end{datadesc}
The exceptions are:
\renewcommand
{
\indexsubitem
}{
(exception in module string)
}
The functions are:
The functions defined in this module are:
\renewcommand
{
\indexsubitem
}{
(in module string)
}
...
...
@@ -169,3 +168,12 @@ The string is never truncated.
Pad a numeric string on the left with zero digits until the given
width is reached. Strings starting with a sign are handled correctly.
\end{funcdesc}
This module is implemented in Python. Much of its functionality has
been reimplemented in the built-in module
\code
{
strop
}
. However, you
should
\emph
{
never
}
import the latter module directly. When
\code
{
string
}
discovers that
\code
{
strop
}
exists, it transparently
replaces parts of itself with the implementation from
\code
{
strop
}
.
After initialization, there is
\emph
{
no
}
overhead in using
\code
{
string
}
instead of
\code
{
strop
}
.
\bimodindex
{
strop
}
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