Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Python Objects > Exercises - Pg. 66

Python Objects Data Type strings lists tuples dictionaries Storage Model literal/scalar container container container Update Model immutable mutable immutable mutable Access Model sequence sequence sequence mapping 66 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.