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 serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, dalke, pitrou, serhiy.storchaka
Date 2017-05-22.20:42:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495485725.63.0.316881352098.issue30416@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes const folding more safe by checking arguments before doing expensive calculation that can create large object (multiplication, power and left shift). It fixes examples in this issue, issue21074, issue30293. The limit for repetition is increase from 20 to 256. There are no limits for addition/concatenation and like, since it is hard to create really large objects with these operations.
History
Date User Action Args
2017-05-22 20:42:05serhiy.storchakasetrecipients: + serhiy.storchaka, dalke, pitrou, Jim Fasarakis-Hilliard
2017-05-22 20:42:05serhiy.storchakasetmessageid: <1495485725.63.0.316881352098.issue30416@psf.upfronthosting.co.za>
2017-05-22 20:42:05serhiy.storchakalinkissue30416 messages
2017-05-22 20:42:05serhiy.storchakacreate