This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients jen.soft.master, steven.daprano
Date 2021-01-18.10:18:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610965120.48.0.63681394468.issue42954@roundup.psfhosted.org>
In-reply-to
Content
Oops sorry I got the operator precedence wrong:

    if (profile := users.get(uid, None)) is not None:

The walrus operator was added in Python 3.8. Using the "as" key word was considered and rejected. See the PEP:

https://www.python.org/dev/peps/pep-0572/

https://docs.python.org/3/reference/expressions.html#assignment-expressions


I don't want to discourage you, but the process to get new syntax added to the library is:

* discuss it on Python-Ideas mailing list, to see if there is community support for it;

* if there is community support, as for a core developer to sponsor the idea;

* if you get a sponsor, write a PEP

* hopefully the Steering Council will accept it;

* and somebody (perhaps you, perhaps somebody else) will make the changes to the language.


https://mail.python.org/archives/list/python-ideas@python.org/

https://www.python.org/dev/peps/
History
Date User Action Args
2021-01-18 10:18:40steven.dapranosetrecipients: + steven.daprano, jen.soft.master
2021-01-18 10:18:40steven.dapranosetmessageid: <1610965120.48.0.63681394468.issue42954@roundup.psfhosted.org>
2021-01-18 10:18:40steven.dapranolinkissue42954 messages
2021-01-18 10:18:40steven.dapranocreate