4 ms·
I expect the PEP authors want to avoid the "while chunk == read()" class of bugs ninjaedit: indeed https://www.python.org/dev/peps/pep-0572/#why-not-just-turn-
by RaptorJ 7y ago
I expect the PEP authors want to avoid the "while chunk == read()" class of bugs
ninjaedit: indeed https://www.python.org/dev/peps/pep-0572/#why-not-just-turn-existing-assignment-into-an-expression https://www.python.org/dev/peps/pep-0572/#why-not-just-turn-...
- benchaney 7y agoAnd also the converse (but no less dangerous) "if value = true"