This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pgimeno
Recipients Trip.Volpe, ajaksu2, amaury.forgeotdarc, barry, belopolsky, eric.araujo, eric.snow, ethan.furman, flox, nedbat, pgimeno, rhettinger, terry.reedy, tshepang, vstinner
Date 2014-06-22.13:10:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I consider peephole optimization when no optimization was requested a bug.

Documentation for -O says it "Turns on basic optimizations". Peephole optimization is a basic optimization, yet it is performed even when no basic optimizations were requested.

No need to add a switch. Just don't optimize if not requested.
Date User Action Args
2014-06-22 13:10:57pgimenosetrecipients: + pgimeno, barry, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, vstinner, ajaksu2, nedbat, eric.araujo, flox, ethan.furman, tshepang, eric.snow, Trip.Volpe
2014-06-22 13:10:57pgimenosetmessageid: <>
2014-06-22 13:10:57pgimenolinkissue2506 messages
2014-06-22 13:10:57pgimenocreate