Author jfine2358
Recipients docs@python, jfine2358
Date 2018-07-26.14:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532614776.63.0.56676864532.issue34237@psf.upfronthosting.co.za>
In-reply-to
Content
The title says it all.
faq/design: PEP 572 adds assignment expressions

https://docs.python.org/3.8/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression
[Can't use] this C idiom:
while (line = readline(f)) {
    // do something with line
}

https://www.python.org/dev/peps/pep-0572/
while chunk := file.read(8192):
   process(chunk)
History
Date User Action Args
2018-07-26 14:19:36jfine2358setrecipients: + jfine2358, docs@python
2018-07-26 14:19:36jfine2358setmessageid: <1532614776.63.0.56676864532.issue34237@psf.upfronthosting.co.za>
2018-07-26 14:19:36jfine2358linkissue34237 messages
2018-07-26 14:19:36jfine2358create