Re: [Python-Dev] PEP 572: Assignment Expressions

2018年4月23日 17:00:11 -0700

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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to