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 Oren Milman
Recipients Oren Milman, mark.dickinson, serhiy.storchaka, vstinner, yselivanov
Date 2016-05-29.18:48:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464547709.37.0.45192072923.issue27073@psf.upfronthosting.co.za>
In-reply-to
Content
I agree. This assert only indirectly verifies that something bad doesn't happen. 

The bad thing that might happen is an in-place negating of an element of small_ints, so the most direct assert should be 'assert(Py_REFCNT(z) == 1);'.
This is exactly what Victor did in long_lshift back in revision 84698...

What do you think?
History
Date User Action Args
2016-05-29 18:48:29Oren Milmansetrecipients: + Oren Milman, mark.dickinson, vstinner, serhiy.storchaka, yselivanov
2016-05-29 18:48:29Oren Milmansetmessageid: <1464547709.37.0.45192072923.issue27073@psf.upfronthosting.co.za>
2016-05-29 18:48:29Oren Milmanlinkissue27073 messages
2016-05-29 18:48:29Oren Milmancreate