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
131298a3
Commit
131298a3
authored
Aug 17, 2005
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that the PyNumber protocol can access most set methods directly.
parent
da894d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Doc/api/concrete.tex
Doc/api/concrete.tex
+10
-3
No files found.
Doc/api/concrete.tex
View file @
131298a3
...
...
@@ -1144,7 +1144,7 @@ These are the UTF-16 codec APIs:
If
\var
{
consumed
}
is
\NULL
{}
, behaves like
\cfunction
{
PyUnicode
_
DecodeUTF16()
}
. If
\var
{
consumed
}
is not
\NULL
{}
,
\cfunction
{
PyUnicode
_
DecodeUTF16Stateful()
}
will not treat trailing incomplete
UTF-16 byte sequences (
i.e.
an odd number of bytes or a split surrogate pair)
UTF-16 byte sequences (
such as
an odd number of bytes or a split surrogate pair)
as an error. Those bytes will not be decoded and the number of bytes that
have been decoded will be stored in
\var
{
consumed
}
.
\versionadded
{
2.4
}
...
...
@@ -2908,11 +2908,18 @@ Macros for the convenience of modules implementing the DB API:
This section details the public API for
\class
{
set
}
and
\class
{
frozenset
}
objects. Any functionality not listed below is best accessed using the
abstract object API
(including
either the abstract object protocol
(including
\cfunction
{
PyObject
_
CallMethod()
}
,
\cfunction
{
PyObject
_
RichCompareBool()
}
,
\cfunction
{
PyObject
_
Hash()
}
,
\cfunction
{
PyObject
_
Repr()
}
,
\cfunction
{
PyObject
_
IsTrue()
}
,
\cfunction
{
PyObject
_
Print()
}
, and
\cfunction
{
PyObject
_
GetIter()
}
).
\cfunction
{
PyObject
_
GetIter()
}
)
or the abstract number protocol (including
\cfunction
{
PyNumber
_
Add()
}
,
\cfunction
{
PyNumber
_
Subtract()
}
,
\cfunction
{
PyNumber
_
Or()
}
,
\cfunction
{
PyNumber
_
Xor()
}
,
\cfunction
{
PyNumber
_
InplaceAdd()
}
,
\cfunction
{
PyNumber
_
InplaceSubtract()
}
,
\cfunction
{
PyNumber
_
InplaceOr()
}
, and
\cfunction
{
PyNumber
_
InplaceXor()
}
).
Note, the latter are also useful for copying (
\code
{
c=s+s
}
) and clearing
(
\code
{
s-=s
}
).
\begin{ctypedesc}
{
PySetObject
}
This subtype of
\ctype
{
PyObject
}
is used to hold the internal data for
...
...
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