[Python-ideas] PEP 572: Statement-Local Name Bindings, take three!

Nikolaus Rath Nikolaus at rath.org
Fri Mar 30 15:04:52 EDT 2018


On Mar 25 2018, Guido van Rossum <guido-+ZN9ApsXKcEdnm+yROfE0A at public.gmane.org> wrote:
> I gotta say I'm warming up to := in preference over 'as', *if* we're going
> to do this at all (not a foregone conclusion at all).

I'm surprised that no one has mentioned it yet, so as a quick datapoint:
Go also uses := for assignment, so there's some precedent.


Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


More information about the Python-ideas mailing list