GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] PEP 565: Show DeprecationWarning in __main__

[Python-Dev] PEP 565: Show DeprecationWarning in __main__

Victor Stinner victor.stinner at gmail.com
Tue Dec 5 15:10:22 EST 2017

  • Previous message (by thread): [Python-Dev] PEP 565: Show DeprecationWarning in __main__
  • Next message (by thread): [Python-Dev] PEP 565: Show DeprecationWarning in __main__
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

2017-12-05 19:24 GMT+01:00 Guido van Rossum <guido at python.org>:
>> I disagree that *users* of an application is supposed to "handle"
>> deprecation warnings: report them to the developer, or even try to fix
>> them. IHMO these warnings (hidden by default) were introduced for
>> developers of the application.
>
> But the whole point of the PEP is that it only warns about deprecations in
> code over which the user has control -- likely __main__ is their own code,
> and they *can* handle it.

IMHO the core of the PEP 565 is to propose a compromise to separate
"own code" and "external code" (cannot be modified).

I'm unhappy with this suboptimal compromise: "only __main__ is my own
code". Maybe we need something to declare the code that we own, to
enable warnings on them. Just a simple helper on top of
warnings.filterwarnings()? Or maybe I'm already in the "the better is
the enemy of the good" greay area :-)

Victor

  • Previous message (by thread): [Python-Dev] PEP 565: Show DeprecationWarning in __main__
  • Next message (by thread): [Python-Dev] PEP 565: Show DeprecationWarning in __main__
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.