Jump to content

Real Python - Immutability in Python


Recommended Posts



da1fee40daf9e1389f71fbd96ccad9ad.jpeg
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 20.5 MB | Duration: 5 Lessons | 9m
In Python, immutable vs mutable data types and objects types can cause some confusion-and weird bugs. With this video course you'll see what the difference between mutable and immutable data types is in Python, and how you can use it to your advantage in your own programs.

You'll also see how to deal with a language quirk in Python that allows objects referenced by immutable types to me modified. Python's definition of "immutable" can be a bit misleading.
Basically, the promise of "immutability" on tuples is only partly true. The tuple itself cannot be modified, but objects referenced by the tuple can be. This is sometimes called "non-transitive immutability."
If the tuple has an immutable field like a string for example, then it cannot be modified. A mutable field like a list however, can be edited, even if it's embedded in the "immutable" tuple.
When the Python documentation refers to an object as being "immutable" they mean the behavior above observed. Other immutable types in Python behave the same way, e.g. namedtuples or frozensets.
If you've ever encountered the following exception and now you want to know why, this is the video course for you:

Homepage
https://realpython.com/courses/immutability-python/




https://hot4share.com/qav585wl1006/f6aj8.Immutability.in.Python.rar.html
[b]Download (Uploadgig)[/b]
https://uploadgig.com/file/download/61ade47426Da7366/f6aj8.Immutability.in.Python.rar
Download ( Rapidgator )
https://rapidgator.net/file/d249a03deb3f708215d69731e39dbb7f/f6aj8.Immutability.in.Python.rar.html
Download ( NitroFlare )
http://nitro.download/view/265E19F5C968005/f6aj8.Immutability.in.Python.rar


Links are Interchangeable - No Password - Single Extraction
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...