Overview
Python integers (int) support arbitrary precision - they can represent integers of any size limited only by available memory.
Type Object
int type.
Type Checking
Creating Integers
From C Types
From Strings
Converting to C Types
PyErr_Occurred())
Example:
With Overflow Detection
int*
Set to -1, 0, or 1 indicating underflow, success, or overflow
Complete Example
See Also
- Boolean Objects - Booleans are a subclass of int
- Floating Point Objects
- Object Protocol
