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
42a1172c
Commit
42a1172c
authored
Apr 23, 2003
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the new format codes B, H, I, k, K.
parent
1d877863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Doc/api/utilities.tex
Doc/api/utilities.tex
+22
-0
No files found.
Doc/api/utilities.tex
View file @
42a1172c
...
...
@@ -487,20 +487,42 @@ whose address should be passed.
\item
[\samp{b} (integer) {[char]
}
]
Convert a Python integer to a tiny int, stored in a C
\ctype
{
char
}
.
\item
[\samp{B} (integer) {[unsigned char]
}
]
Convert a Python integer to a tiny int without overflow checking,
stored in a C
\ctype
{
unsigned char
}
.
\versionadded
{
2.3
}
\item
[\samp{h} (integer) {[short int]
}
]
Convert a Python integer to a C
\ctype
{
short int
}
.
\item
[\samp{H} (integer) {[unsigned short int]
}
]
Convert a Python integer to a C
\ctype
{
unsigned short int
}
, without
overflow checking.
\versionadded
{
2.3
}
\item
[\samp{i} (integer) {[int]
}
]
Convert a Python integer to a plain C
\ctype
{
int
}
.
\item
[\samp{I} (integer) {[unsigned int]
}
]
Convert a Python integer to a C
\ctype
{
unsigned int
}
, without
overflow checking.
\versionadded
{
2.3
}
\item
[\samp{l} (integer) {[long int]
}
]
Convert a Python integer to a C
\ctype
{
long int
}
.
\item
[\samp{k} (integer) {[unsigned long]
}
]
Convert a Python integer to a C
\ctype
{
unsigned long
}
without
overflow checking.
\versionadded
{
2.3
}
\item
[\samp{L} (integer) {[PY_LONG_LONG]
}
]
Convert a Python integer to a C
\ctype
{
long long
}
. This format is
only available on platforms that support
\ctype
{
long long
}
(or
\ctype
{_
int64
}
on Windows).
\item
[\samp{K} (integer) {[unsigned PY_LONG_LONG]
}
]
Convert a Python integer to a C
\ctype
{
unsigned long long
}
without overflow checking. This format is only available on
platforms that support
\ctype
{
unsigned long long
}
(or
\ctype
{
unsigned
_
int64
}
on Windows).
\versionadded
{
2.3
}
\item
[\samp{c} (string of length 1) {[char]
}
]
Convert a Python character, represented as a string of length 1, to
a C
\ctype
{
char
}
.
...
...
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