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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 9 01:49:15 EST 2017


> On 8 November 2017 at 19:21, Antoine Pitrou <solipsis at pitrou.net> wrote:
>> The idea that __main__ scripts should
>> get special treatment here is entirely gratuitous.

When I'm writing an app in Python, very often my __main__ is
just a stub that imports the actual functionality from another
module to get the benefits of a pyc. So enabling deprecation
warnings for __main__ only wouldn't result in me seeing any
more warnings.

-- 
Greg



More information about the Python-Dev mailing list