[Python-Dev] Running Py2.6 with the -3 option
steve at holdenweb.com
Fri Jul 11 15:02:21 CEST 2008
Benjamin Peterson wrote:
> On Fri, Jul 11, 2008 at 6:24 AM, Raymond Hettinger <python at rcn.com> wrote:
>> Some effort needs to be made to clear the standard library of -3 warnings.
>> Running -3 on production code usually involves exercising library code so
>> the useful result is obscured by Python complaining about itself. Since
>> that use case involves the users own tests, I don't think the effort needs
>> to be extended to our own unittest suite. But the rest of the library could
>> likely benefit from a good -3 cleanup.
> Yes, indeed. We should make sure, however, that the changes in the 2.6
> libraries are the absolute minimum to get the job done. (I'm trying to
> pretend like this isn't violating the prohibition on all-inclusive
> overhauls in the stdlib.)
The prohibition is on *gratuitous* changes, basically along the lines of
"if it ain't broke, don't fix it". The stdlib is definitely broken if it
raises warnings of that kind.
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-Dev