4.8. Unsupported Types
Before we explore each standard type, we conclude this chapter by giving a list of types that are not supported by Python.
Boolean
Unlike Pascal or Java, Python does not feature the Boolean type. Use integers instead.
char or byte
Python does not have a char or byte type to hold either single character or 8-bit integers. Use strings of length one for characters and integers for 8-bit numbers.
pointer
Since Python manages memory for you, there is no need to access pointer addresses. The closest to an address that you can get in Python is by looking at an object's identity using the id() built-in function. Since you have no control over this value, it's a moot point.
int vs. short vs. long
Python's plain integers are ...
Get Core Python Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.