[ python-Bugs-1441408 ] svn head compiler fails to spot extended slicing

SourceForge.net noreply at sourceforge.net
Thu Mar 2 02:20:13 CET 2006


Bugs item #1441408, was opened at 2006-03-02 01:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: None
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        


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1441408&group_id=5470


More information about the Python-bugs-list mailing list