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 quotemstr
Recipients quotemstr
Date 2008-07-03.20:43:12
SpamBayes Score 0.11695245
Marked as misclassified No
Message-id <1215117793.84.0.876575778362.issue3275@psf.upfronthosting.co.za>
In-reply-to
Content
Consider:

import dis
def foo():
  if 0 and 1: return "hi"

dis.dis(foo)

What I get is 

  2           0 LOAD_CONST               1 (0)
              3 JUMP_IF_FALSE           15 (to 21)
              6 POP_TOP             
              7 LOAD_CONST               2 (1)
             10 JUMP_IF_FALSE            8 (to 21)
             13 POP_TOP             
             14 LOAD_CONST               3 ('hi')
             17 RETURN_VALUE        
             18 JUMP_FORWARD             1 (to 22)
        >>   21 POP_TOP             
        >>   22 LOAD_CONST               0 (None)
             25 RETURN_VALUE        

What I'd expect to see is:

  1           0 LOAD_CONST               0 (None)
              3 RETURN_VALUE
History
Date User Action Args
2008-07-03 20:43:14quotemstrsetspambayes_score: 0.116952 -> 0.11695245
recipients: + quotemstr
2008-07-03 20:43:13quotemstrsetspambayes_score: 0.116952 -> 0.116952
messageid: <1215117793.84.0.876575778362.issue3275@psf.upfronthosting.co.za>
2008-07-03 20:43:12quotemstrlinkissue3275 messages
2008-07-03 20:43:12quotemstrcreate