Skip to content

Adopt Py3.8+ features: Walrus operator #3734

@Bibo-Joshi

Description

@Bibo-Joshi

Python 3.8 adds the walrus operator. This allows to write some code lines in a more compact form.
We should review our code bases for places where we can use the walrus operator in a beneficial way. Usages of re.match are a common case, maybe there are also some automated tools that can check for places. It is not expected that we can find all places in one go.

A PR in this direction is very welcome. As long as #3728 is open, it should be based on the drop-py-37 branch. If you would like to send a PR, please be sure to read our contribution guide and leave a short comment so that we can assign you.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions