Python Dunder / Magic / Special Methods
Автор: Asha Tutorials
Загружено: 2020-07-19
Просмотров: 894
Описание:
Website: https://www.ashatutorials.com/python_...
Contents:
00:00 Dunder Methods
00:33 __str__()
00:52 __repr__()
01:20 __format__()
02:05 Class without any string representation dunder
02:47 Implementing __str__(), __repr__(), __format__()
06:14 Defining only __repr__() and using it as fallback of __str__()
07:34 Defining __str__() only
08:32 Dunders for Arithmatic Operations
14:12 Dunders for Bitwise Operators
17:21 Dunders for Comparision Operators
20:41 @total_ordering decorator
22:41 Sorting collection object with comparision dunders
23:59 Using custom comparator function as 'key' argument of sorted()
27:10 Dunder methods for Value Conversion
28:47 Dunder methods for Unaray Operators
30:21 __del__()
34:58 __bytes__() and frombytes()
38:23 __hash__()
38:44 id() vs hash()
39:27 Hashing the object of class without __hash__()
40:08 equals and hash contracts
41:32 sys.hash_info
42:33 defining __hash__() and __eq__()
46:02 __hash__() and inheritance
47:25 __call__()
49:13 Dunder methods for class with collection
57:59 __missing__()
1:02:35 Shallow copy vs Deep copy with example
1:07:58 __copy__() and __deepcopy__()
1:09:06 Monkey Patching Dunder methods
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: