osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Examples for PEP 572


Sorry for adding yet another mail. :-(

On 04.07.2018 10:54, Serhiy Storchaka wrote:
> Sorry, this PEP was rewritten so many times that I missed your Appendix.
>
>> while total != (total := total + term):
>> ??? term *= mx2 / (i*(i+1))
>> ??? i += 2
>> return total
>

This very example here caught my eye.

Isn't total not always equal to total? What would "regular" Python have 
looked like?

Regards,
Sven