[Checkins] [zopefoundation/RestrictedPython] 722800: Support assignment expressions (i.e. the ":=" oper...

Dieter Maurer noreply at github.com
Fri Jul 10 16:02:36 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 722800e2123b2d72bb381335170d5bb9a9f8fda5
      https://github.com/zopefoundation/RestrictedPython/commit/722800e2123b2d72bb381335170d5bb9a9f8fda5
  Author: Dieter Maurer <d-maurer at users.noreply.github.com>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M docs/CHANGES.rst
    M src/RestrictedPython/transformer.py
    A tests/test_NamedExpr.py

  Log Message:
  -----------
  Support assignment expressions (i.e. the ":=" operator) (#195)

* Support assignment expressions (i.e. the ":=" operator

* make flake8 happy

* add tests for `NamedExpr` support

* make `isort` happy

* check that "private" variables cannot be used as target

* use version detection support from `_compat`;
get rid of `util`

* make `isort` happy

* move `test_NamedExpr` out of `src/RestrictedPython/tests` to `tests`

Co-authored-by: Jens Vagelpohl <jens at netz.ooo>
Co-authored-by: Michael Howitz <mh at gocept.com>




More information about the checkins mailing list