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
7376490d
Commit
7376490d
authored
May 25, 2007
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the existence of PyUnicode_InternInPlace() and
PyUnicode_InternFromString().
parent
1911c375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Doc/api/concrete.tex
Doc/api/concrete.tex
+21
-0
No files found.
Doc/api/concrete.tex
View file @
7376490d
...
...
@@ -1611,6 +1611,27 @@ They all return \NULL{} or \code{-1} if an exception occurs.
string.
\code
{
-1
}
is returned if there was an error.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyUnicode
_
InternInPlace
}{
PyObject **string
}
Intern the argument
\var
{
*string
}
in place. The argument must be
the address of a pointer variable pointing to a Python unicode string
object. If there is an existing interned string that is the same as
\var
{
*string
}
, it sets
\var
{
*string
}
to it (decrementing the
reference count of the old string object and incrementing the
reference count of the interned string object), otherwise it leaves
\var
{
*string
}
alone and interns it (incrementing its reference
count). (Clarification: even though there is a lot of talk about
reference counts, think of this function as reference-count-neutral;
you own the object after the call if and only if you owned it before
the call.)
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
InternFromString
}{
const char *v
}
A combination of
\cfunction
{
PyUnicode
_
FromString()
}
and
\cfunction
{
PyUnicode
_
InternInPlace()
}
, returning either a new unicode
string object that has been interned, or a new (``owned'') reference to
an earlier interned string object with the same value.
\end{cfuncdesc}
\subsection
{
Buffer Objects
\label
{
bufferObjects
}}
\sectionauthor
{
Greg Stein
}{
gstein@lyra.org
}
...
...
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