Bugs item #1441408, was opened at 2006-03-01 19:20 Message generated for change (Comment added) made by logistix You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1441408&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Hudson (mwh) Assigned to: Nobody/Anonymous (nobody) Summary: svn head compiler fails to spot extended slicing Initial Comment: This is Python SVN HEAD: >>> dis.dis(compile("x[::]", '', 'single')) 1 0 LOAD_NAME 0 (x) 3 SLICE+0 4 PRINT_EXPR 5 LOAD_CONST 0 (None) 8 RETURN_VALUE This is Python 2.4: >>> dis.dis(compile("x[::]", '', 'single')) 1 0 LOAD_NAME 0 (x) 3 LOAD_CONST 0 (None) 6 LOAD_CONST 0 (None) 9 LOAD_CONST 0 (None) 12 BUILD_SLICE 3 15 BINARY_SUBSCR 16 PRINT_EXPR 17 LOAD_CONST 0 (None) 20 RETURN_VALUE ---------------------------------------------------------------------- Comment By: Grant Olson (logistix) Date: 2006-03-05 17:33 Message: Logged In: YES user_id=699438 This only happens when you have implicit slice values. x[1:2:3] works fine. I'm finishing up a patch and will post to sf shortly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1441408&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com