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 rhettinger
Recipients alex, benjamin.peterson, dalke, eryksun, holdenweb, methane, ncoghlan, pitrou, rhettinger, vstinner
Date 2017-05-23.01:52:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495504324.8.0.390596840716.issue21074@psf.upfronthosting.co.za>
In-reply-to
Content
> I do not think quoting the Zen of Python helps anything.

Instead of practicality-beats-purity, the better aphorism is perfect-is-the-enemy-of-good.

> The Code of Conduct which governs comments here requests
> that we be considerate and respective

The term sanity check was used in normal technical sense.  It is a technical description of a kind of guard that is sometimes placed in code.  It isn't a judgment about a user or their code. 

In issue 30293, the StackOverflow OP constructed a hypothetical example that explicitly asked the machine to compute a large object using ``1 << 500000000``.  The OP was merely curious about why the optimized code was so much faster than the unoptimized code. 

On the tracker, this gave rise to question about whether sanity checks should be added to the peephole optimizer.  Apparently, the use of the word sanity is offensive to you and hence the reference to the code-of-conduct.  Though I believe this is a profound misreading of my words and my intent, I apologize if you were offended.

Even though I'm a subject-matter-expert in the area, after the code-of-conduct reference, I no longer feel comfortable or safe in participating further this discussion, so I am bowing out.

To move these issues to resolution, please be clear about what is being asked for.  If you don't want the issue re-opened, please close it.  If you want the peephole optimizer to be disabled because it is interfering with your work, please say so -- we can take it out and give up whatever benefits it offering to other users.  If you want some specific guards to be added, please say so.

My opinion is that this difficult to do in the general case and that it is difficult to decide what the desirable behavior should be for the uncommon cases.  ISTM that constant folding is already too complex and would benefit from benefit from simplification rather than growing additional special cases.  That said, your opinion may differ from mine, and it is just as valid.
History
Date User Action Args
2017-05-23 01:52:04rhettingersetrecipients: + rhettinger, holdenweb, dalke, ncoghlan, pitrou, vstinner, benjamin.peterson, alex, methane, eryksun
2017-05-23 01:52:04rhettingersetmessageid: <1495504324.8.0.390596840716.issue21074@psf.upfronthosting.co.za>
2017-05-23 01:52:04rhettingerlinkissue21074 messages
2017-05-23 01:52:03rhettingercreate