简体   繁体   中英

Where to find official documentation on immutable types in python

Where can I find a complete list of all immutable types in the official python documentation?

All I have found were many incomplete and unofficial lists scattered all over the web.

Docs on build-in-types doesn't have an overview on im-/mutable types: https://docs.python.org/3/library/stdtypes.html

Mutable and Immutable Data Types in Python

  • Some of the mutable data types in Python are list, dictionary, set and user-defined classes.
  • On the other hand, some of the immutable data types are int, float, decimal, bool, string, tuple, and range.

You can find about types in python in documentation also, please have o look at it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM