A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-April/152915.html below:

[Python-Dev] PEP 572: Assignment Expressions

[Python-Dev] PEP 572: Assignment Expressions [Python-Dev] PEP 572: Assignment ExpressionsGreg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 23 19:56:54 EDT 2018
Sven R. Kunze wrote:

> if (x - x_base) and gcd(x - x_base, n) > 1:
>     return gcd(x - x_base, n)
> 
> and have the interpreter handle the optimization, or apply an lru_cache? ;-)

Problem is, there's no way to automatically tell whether
the expressions involved have side effects that are being
relied on.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4