Меню юзера
Опрос
Какая у вас ОС?

SeVen
Vista
XP
MacOs
Linux/Unix


Новости

  Immutability in Python

Author Автор: VnRuEn | Date Дата: 31 августа 2021| Views Просмотров: 0

В разделе: - [Информация]



Immutability in Python
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:

Screenshots

Immutability in Python

Homepage
  Наш сайт не предоставляет ссылки на скачивание  
  Our site does not provide download links 





https://nitroflare.com/view/5DCCBD151C9B674/kdfed.Immutability.in.Python.rar





https://rapidgator.net/file/e0995ca03467270af1a2d4a9ff4033b1/kdfed.Immutability.in.Python.rar


Популярные файлы
    Реклама