A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-July/154409.html below:

[Python-Dev] PEP 572 semantics

[Python-Dev] PEP 572 semantics [Python-Dev] PEP 572 semanticsChris Angelico rosuav at gmail.com
Thu Jul 5 20:17:43 EDT 2018
On Fri, Jul 6, 2018 at 10:17 AM, Guido van Rossum <guido at python.org> wrote:
>> I'm still wondering if it might make sense to define a new
>> "TargetScopeError" subclass of SyntaxError for that last case, since it
>> isn't the assignment expression syntax itself that's the problem: it's where
>> that expression is located.
>
>
> Yeah, that would be a good idea. (Though do we currently have any subclasses
> of SyntaxError? And if so, do any of them have a name that does not include
> the substring "SyntaxError"?)
>

There's IndentationError. +1 on the dedicated exception type.

ChrisA
More information about the Python-Dev mailing list

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