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 scoder
Recipients mark.dickinson, pitrou, scoder, serhiy.storchaka, vstinner
Date 2014-09-26.10:57:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411729047.39.0.0647147756114.issue22501@psf.upfronthosting.co.za>
In-reply-to
Content
Here is an incremental patch that adds fast paths for adding and subtracting 0.

Question: the module calls long_long() in some places (e.g. long_abs()) and thus forces the return type to be exactly a PyLong and not a subtype. My changes use a plain "incref+return input value" in some places. Should they call long_long() on it instead?
History
Date User Action Args
2014-09-26 10:57:27scodersetrecipients: + scoder, mark.dickinson, pitrou, vstinner, serhiy.storchaka
2014-09-26 10:57:27scodersetmessageid: <1411729047.39.0.0647147756114.issue22501@psf.upfronthosting.co.za>
2014-09-26 10:57:27scoderlinkissue22501 messages
2014-09-26 10:57:27scodercreate