A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PyCQA/pylint/issues/2246 below:

Add scanning for assignment expressions (PEP 572) · Issue #2246 · pylint-dev/pylint · GitHub

Many developers have expressed opposition to this PEP, including a desire to ban this syntax from their projects. If there was a flag to scan for this syntax and register it as an error, this would facilitate them being able to do so.

I would prefer it if that were a default option that they had to explicitly disable,

In addition, scanning for this at a top level should be enabled by default. The following, for instance, should always be an error regardless of the flag:

a = 3  # no error
b := 4  # error, doesn't need to be at top level
c = d := 5  # error, can be done better with chained assignment

endolith and chasingrainbows


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4