Pythons new operator - 'The Walrus' - Python 3.8 (PEP 527)

preview_player
Показать описание
In this short video, we'll take a quick look at the new operator in Python 3.8 proposed in PEP 527, also known as the walrus operator

Рекомендации по теме
Комментарии
Автор

Finally! I won't have to do while-true-if-break anymore!!

jakubblaha
Автор

The walrus is a nice addition. It brings Python closer to other C-like languages, where the combined assignment and condition check is already a common idiom. And it's good that they made the bare expression invalid syntax so that new users aren't unnecessarily confused about whether to use '=' or ':='.

lkjadslkfjlaksj
Автор

It's not PEP 527, it's PEP 572 - see your intro notes above.

Nickle
Автор

An assignment expression cannot now be used in an iterable comprehension expression.

WilliamCanin
Автор

Hi ... thank you for this tutorial if you can complete all new features about python 3.8

Mohammed_Towfiq
Автор

Thanks for the video, if you have a higher res, you should update, it's a little tough to read the code.

lynnaebryan