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
410cb6be
Commit
410cb6be
authored
Oct 05, 2000
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The _PyTuple_Resize() last_is_sticky flag must now always be false.
parent
08b53e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/api/api.tex
Doc/api/api.tex
+6
-6
No files found.
Doc/api/api.tex
View file @
410cb6be
...
...
@@ -3070,12 +3070,12 @@ Can be used to resize a tuple. \var{newsize} will be the new length
of the tuple. Because tuples are
\emph
{
supposed
}
to be immutable,
this should only be used if there is only one reference to the object.
Do
\emph
{
not
}
use this if the tuple may already be known to some other
part of the code.
\var
{
last
_
is
_
sticky
}
is a flag --- if true, t
he
tuple will grow or shrink at the front, otherwise it will grow or
shrink at the end. Think of this as destroying the old tuple and
creating a new one, only more efficiently. Returns
\code
{
0
}
o
n
success and
\code
{
-1
}
on failure (in which case a
\exception
{
MemoryError
}
or
\exception
{
SystemError
}
will be
raised).
part of the code.
The tuple will always grow or shrink at the end. T
he
\var
{
last
_
is
_
sticky
}
flag is not used and should always be false. Think
of this as destroying the old tuple and creating a new one, only more
efficiently. Returns
\code
{
0
}
on success and
\code
{
-1
}
on failure (i
n
which case a
\exception
{
MemoryError
}
or
\exception
{
SystemError
}
will be
raised).
\end{cfuncdesc}
...
...
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