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/2017-November/150416.html below:

[Python-Dev] [python-committers] Enabling depreciation warnings feature code cutoff

[Python-Dev] [python-committers] Enabling depreciation warnings feature code cutoff [Python-Dev] [python-committers] Enabling depreciation warnings feature code cutoffPaul Moore p.f.moore at gmail.com
Thu Nov 9 04:07:18 EST 2017
On 9 November 2017 at 02:17, Barry Warsaw <barry at python.org> wrote:
> I suppose there are lots of ways to do this, but at least I’m pretty sure we all agree that end users shouldn’t see DeprecationWarnings, while developers should.

Agreed. Most of the debate to me seems to be around who is an end user
and who is a developer (and whether someone can be both at the same
time).

In my opinion, I am a developer of any code I write, but an end user
of any code I get from others (whether that be a library or a
full-blown application). However, the problem is that Python can't
tell what code I wrote. Enabling warnings just for __main__ takes a
conservative view of what counts as "code I wrote", while not being as
conservative as the current approach (which is basically "assume I'm
an end user unless I explicitly say I'm not"). My preference is to be
conservative, so the proposed change is OK with me.

Paul
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