René's URL Explorer Experiment


Title: PEP 572 – Assignment Expressions | peps.python.org

Open Graph Title: PEP 572 – Assignment Expressions | peps.python.org

Description: This is a proposal for creating a way to assign to variables within an expression using the notation NAME := expr.

Open Graph Description: This is a proposal for creating a way to assign to variables within an expression using the notation NAME := expr.

Opengraph URL: https://peps.python.org/pep-0572/

direct link

Domain: peps.python.org

color-schemelight dark
og:typewebsite
og:site_namePython Enhancement Proposals (PEPs)
og:imagehttps://peps.python.org/_static/og-image.png
og:image:altPython PEPs
og:image:width200
og:image:height200
theme-color#3776ab

Links:

Pythonhttps://www.python.org/
PEP Indexhttps://peps.python.org/
Python-Dev messagehttps://mail.python.org/pipermail/python-dev/2018-July/154601.html
Abstracthttps://peps.python.org/572#abstract
Rationalehttps://peps.python.org/572#rationale
The importance of real codehttps://peps.python.org/572#the-importance-of-real-code
Syntax and semanticshttps://peps.python.org/572#syntax-and-semantics
Exceptional caseshttps://peps.python.org/572#exceptional-cases
Scope of the targethttps://peps.python.org/572#scope-of-the-target
Relative precedence of :=https://peps.python.org/572#relative-precedence-of
Change to evaluation orderhttps://peps.python.org/572#change-to-evaluation-order
Differences between assignment expressions and assignment statementshttps://peps.python.org/572#differences-between-assignment-expressions-and-assignment-statements
Specification changes during implementationhttps://peps.python.org/572#specification-changes-during-implementation
Exampleshttps://peps.python.org/572#examples
Examples from the Python standard libraryhttps://peps.python.org/572#examples-from-the-python-standard-library
site.pyhttps://peps.python.org/572#site-py
_pydecimal.pyhttps://peps.python.org/572#pydecimal-py
copy.pyhttps://peps.python.org/572#copy-py
datetime.pyhttps://peps.python.org/572#datetime-py
sysconfig.pyhttps://peps.python.org/572#sysconfig-py
Simplifying list comprehensionshttps://peps.python.org/572#simplifying-list-comprehensions
Capturing condition valueshttps://peps.python.org/572#capturing-condition-values
Forkhttps://peps.python.org/572#fork
Rejected alternative proposalshttps://peps.python.org/572#rejected-alternative-proposals
Changing the scope rules for comprehensionshttps://peps.python.org/572#changing-the-scope-rules-for-comprehensions
Alternative spellingshttps://peps.python.org/572#alternative-spellings
Special-casing conditional statementshttps://peps.python.org/572#special-casing-conditional-statements
Special-casing comprehensionshttps://peps.python.org/572#special-casing-comprehensions
Lowering operator precedencehttps://peps.python.org/572#lowering-operator-precedence
Allowing commas to the righthttps://peps.python.org/572#allowing-commas-to-the-right
Always requiring parentheseshttps://peps.python.org/572#always-requiring-parentheses
Frequently Raised Objectionshttps://peps.python.org/572#frequently-raised-objections
Why not just turn existing assignment into an expression?https://peps.python.org/572#why-not-just-turn-existing-assignment-into-an-expression
With assignment expressions, why bother with assignment statements?https://peps.python.org/572#with-assignment-expressions-why-bother-with-assignment-statements
Why not use a sublocal scope and prevent namespace pollution?https://peps.python.org/572#why-not-use-a-sublocal-scope-and-prevent-namespace-pollution
Style guide recommendationshttps://peps.python.org/572#style-guide-recommendations
Acknowledgementshttps://peps.python.org/572#acknowledgements
Appendix A: Tim Peters’s findingshttps://peps.python.org/572#appendix-a-tim-peters-s-findings
A numeric examplehttps://peps.python.org/572#a-numeric-example
Appendix B: Rough code translations for comprehensionshttps://peps.python.org/572#appendix-b-rough-code-translations-for-comprehensions
Appendix C: No Changes to Scope Semanticshttps://peps.python.org/572#appendix-c-no-changes-to-scope-semantics
Referenceshttps://peps.python.org/572#references
Copyrighthttps://peps.python.org/572#copyright
Abstracthttps://peps.python.org/572#abstract
Rationalehttps://peps.python.org/572#rationale
The importance of real codehttps://peps.python.org/572#the-importance-of-real-code
Syntax and semanticshttps://peps.python.org/572#syntax-and-semantics
Exceptional caseshttps://peps.python.org/572#exceptional-cases
Scope of the targethttps://peps.python.org/572#scope-of-the-target
[1]https://peps.python.org/572#id4
Relative precedence of :=https://peps.python.org/572#relative-precedence-of
PEP 8https://peps.python.org/pep-0008/
Change to evaluation orderhttps://peps.python.org/572#change-to-evaluation-order
Differences between assignment expressions and assignment statementshttps://peps.python.org/572#differences-between-assignment-expressions-and-assignment-statements
Specification changes during implementationhttps://peps.python.org/572#specification-changes-during-implementation
[3]https://peps.python.org/572#id6
Exampleshttps://peps.python.org/572#examples
Examples from the Python standard libraryhttps://peps.python.org/572#examples-from-the-python-standard-library
site.pyhttps://peps.python.org/572#site-py
_pydecimal.pyhttps://peps.python.org/572#pydecimal-py
copy.pyhttps://peps.python.org/572#copy-py
datetime.pyhttps://peps.python.org/572#datetime-py
sysconfig.pyhttps://peps.python.org/572#sysconfig-py
Simplifying list comprehensionshttps://peps.python.org/572#simplifying-list-comprehensions
Capturing condition valueshttps://peps.python.org/572#capturing-condition-values
Forkhttps://peps.python.org/572#fork
Rejected alternative proposalshttps://peps.python.org/572#rejected-alternative-proposals
Changing the scope rules for comprehensionshttps://peps.python.org/572#changing-the-scope-rules-for-comprehensions
Alternative spellingshttps://peps.python.org/572#alternative-spellings
PEP 3150https://peps.python.org/pep-3150/
Special-casing conditional statementshttps://peps.python.org/572#special-casing-conditional-statements
Special-casing comprehensionshttps://peps.python.org/572#special-casing-comprehensions
Lowering operator precedencehttps://peps.python.org/572#lowering-operator-precedence
Allowing commas to the righthttps://peps.python.org/572#allowing-commas-to-the-right
Always requiring parentheseshttps://peps.python.org/572#always-requiring-parentheses
Frequently Raised Objectionshttps://peps.python.org/572#frequently-raised-objections
Why not just turn existing assignment into an expression?https://peps.python.org/572#why-not-just-turn-existing-assignment-into-an-expression
With assignment expressions, why bother with assignment statements?https://peps.python.org/572#with-assignment-expressions-why-bother-with-assignment-statements
Why not use a sublocal scope and prevent namespace pollution?https://peps.python.org/572#why-not-use-a-sublocal-scope-and-prevent-namespace-pollution
[2]https://peps.python.org/572#id5
Style guide recommendationshttps://peps.python.org/572#style-guide-recommendations
PEP 8https://peps.python.org/pep-0008/
Acknowledgementshttps://peps.python.org/572#acknowledgements
Appendix A: Tim Peters’s findingshttps://peps.python.org/572#appendix-a-tim-peters-s-findings
A numeric examplehttps://peps.python.org/572#a-numeric-example
Appendix B: Rough code translations for comprehensionshttps://peps.python.org/572#appendix-b-rough-code-translations-for-comprehensions
Appendix C: No Changes to Scope Semanticshttps://peps.python.org/572#appendix-c-no-changes-to-scope-semantics
Referenceshttps://peps.python.org/572#references
1https://peps.python.org/572#id1
https://github.com/Rosuav/cpython/tree/assignment-expressionshttps://github.com/Rosuav/cpython/tree/assignment-expressions
2https://peps.python.org/572#id3
https://mail.python.org/pipermail/python-ideas/2018-March/049409.htmlhttps://mail.python.org/pipermail/python-ideas/2018-March/049409.html
3https://peps.python.org/572#id2
https://mail.python.org/archives/list/python-dev@python.org/thread/FXVSYCTQOTT7JCFACKPGPXKULBCGEPQY/https://mail.python.org/archives/list/python-dev@python.org/thread/FXVSYCTQOTT7JCFACKPGPXKULBCGEPQY/
Copyrighthttps://peps.python.org/572#copyright
Abstracthttps://peps.python.org/572#abstract
Rationalehttps://peps.python.org/572#rationale
The importance of real codehttps://peps.python.org/572#the-importance-of-real-code
Syntax and semanticshttps://peps.python.org/572#syntax-and-semantics
Exceptional caseshttps://peps.python.org/572#exceptional-cases
Scope of the targethttps://peps.python.org/572#scope-of-the-target
Relative precedence of :=https://peps.python.org/572#relative-precedence-of
Change to evaluation orderhttps://peps.python.org/572#change-to-evaluation-order
Differences between assignment expressions and assignment statementshttps://peps.python.org/572#differences-between-assignment-expressions-and-assignment-statements
Specification changes during implementationhttps://peps.python.org/572#specification-changes-during-implementation
Exampleshttps://peps.python.org/572#examples
Examples from the Python standard libraryhttps://peps.python.org/572#examples-from-the-python-standard-library
site.pyhttps://peps.python.org/572#site-py
_pydecimal.pyhttps://peps.python.org/572#pydecimal-py
copy.pyhttps://peps.python.org/572#copy-py
datetime.pyhttps://peps.python.org/572#datetime-py
sysconfig.pyhttps://peps.python.org/572#sysconfig-py
Simplifying list comprehensionshttps://peps.python.org/572#simplifying-list-comprehensions
Capturing condition valueshttps://peps.python.org/572#capturing-condition-values
Forkhttps://peps.python.org/572#fork
Rejected alternative proposalshttps://peps.python.org/572#rejected-alternative-proposals
Changing the scope rules for comprehensionshttps://peps.python.org/572#changing-the-scope-rules-for-comprehensions
Alternative spellingshttps://peps.python.org/572#alternative-spellings
Special-casing conditional statementshttps://peps.python.org/572#special-casing-conditional-statements
Special-casing comprehensionshttps://peps.python.org/572#special-casing-comprehensions
Lowering operator precedencehttps://peps.python.org/572#lowering-operator-precedence
Allowing commas to the righthttps://peps.python.org/572#allowing-commas-to-the-right
Always requiring parentheseshttps://peps.python.org/572#always-requiring-parentheses
Frequently Raised Objectionshttps://peps.python.org/572#frequently-raised-objections
Why not just turn existing assignment into an expression?https://peps.python.org/572#why-not-just-turn-existing-assignment-into-an-expression
With assignment expressions, why bother with assignment statements?https://peps.python.org/572#with-assignment-expressions-why-bother-with-assignment-statements
Why not use a sublocal scope and prevent namespace pollution?https://peps.python.org/572#why-not-use-a-sublocal-scope-and-prevent-namespace-pollution
Style guide recommendationshttps://peps.python.org/572#style-guide-recommendations
Acknowledgementshttps://peps.python.org/572#acknowledgements
Appendix A: Tim Peters’s findingshttps://peps.python.org/572#appendix-a-tim-peters-s-findings
A numeric examplehttps://peps.python.org/572#a-numeric-example
Appendix B: Rough code translations for comprehensionshttps://peps.python.org/572#appendix-b-rough-code-translations-for-comprehensions
Appendix C: No Changes to Scope Semanticshttps://peps.python.org/572#appendix-c-no-changes-to-scope-semantics
Referenceshttps://peps.python.org/572#references
Copyrighthttps://peps.python.org/572#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0572.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0572.rsthttps://github.com/python/peps/blob/main/peps/pep-0572.rst
2025-02-01 08:55:40 UTChttps://github.com/python/peps/commits/main/peps/pep-0572.rst

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.