[issue2499] Fold unary + and not on constants

2009-11-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing this. The Unary Positive is already implemented and there are no known use cases for constant folding a Unary Not. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue2499] Fold unary + and not on constants

2009-11-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue2499] Fold unary + and not on constants

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Folding UNARY_POSITIVE was done by Raymond in r75601. -- nosy: +pitrou ___ Python tracker ___ ___ Py

[issue2499] Fold unary + and not on constants

2008-03-28 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: On Fri, Mar 28, 2008 at 3:25 AM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > It would be helpful if we talked before going further on build-outs to > the peephole optimizer. Sure. > IIRC, we chose to not do this one because it

[issue2499] Fold unary + and not on constants

2008-03-28 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: It would be helpful if we talked before going further on build-outs to the peephole optimizer. IIRC, we chose to not do this one because it interfered with other more important optimizations. More importantly, we decided that the peepho

[issue2499] Fold unary + and not on constants

2008-03-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky <[EMAIL PROTECTED]>: Before: >>> dis(lambda:+2) 1 0 LOAD_CONST 0 (2) 3 UNARY_POSITIVE 4 RETURN_VALUE >>> dis(lambda:not 2) 1 0 LOAD_CONST 0 (2) 3 U