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/2019-January/155997.html below:

[Python-Dev] Compilation of "except FooExc as var" adds useless store

[Python-Dev] Compilation of "except FooExc as var" adds useless store [Python-Dev] Compilation of "except FooExc as var" adds useless storeChris Angelico rosuav at gmail.com
Sun Jan 6 09:44:23 EST 2019
On Mon, Jan 7, 2019 at 1:21 AM Steven D'Aprano <steve at pearwood.info> wrote:
> > I would
> > definitely find a behavior of merely clearing an "except" target
> > variable to be more understandable than magic fiddling with namespaces.
>
> I don't understand what this means. What is "clearing an except target"?
> Do you mean deleting the target name? Names are either bound to an
> object, or they aren't bound at all, so I don't know what it means to
> "clear" a name if it doesn't mean delete it.

Setting it to None before unbinding it. It's apparently not enough to
say "del e" - you have to do "e = None; del e". Check the OP.

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